Hello,

How do I check when creating an instance of a class bound to a
database whether the 1. underlying database and 2. the tables already
exist (were created previously)?

IIRC, in SQLAlchemy when creating tables you can write something like this:

self.words.create(checkfirst=True)
self.meanings.create(checkfirst=True)
self.examples.create(checkfirst=True)

Which creates the tables only if they don't exist.

Storm doesn't have table generators so I wouldn't know what to do.

Thanks.

-- 
Alexei Vinidiktov

-- 
storm mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/storm

Reply via email to