[Grok-dev] megrok.rdb, Oracle, and views.
faassen at startifact.com
Sat Feb 13 04:57:06 EST 2010
Jeffrey D Peterson wrote:
> In setup.py I simply added a parameter and conditional to the setupDatabase
> def setupDatabase(metadata, skip_create=False):
> """Set up of ORM for engine in current site.
> This will:
> * reflect any reflected tables that need to be reflected from the
> into classes.
> * create any tables in the database that haven't been yet reflected.
> if not skip_create:
Hm, I'd like a way to avoid this boolean flag. As far as I can see you
need a function that does two things:
* reflect tables
* send the database setup event
What if we just exposed reflectTables in megrok.rdb so you can call that
directly? I'm trying to recall why DatabaseSetupEvent needs to be sent
here, but I wonder whether we could move it somewhere else instead.
That just would feel slightly better to me than a boolean that changes
More information about the Grok-dev