MiddleKit (MK) uses the object model's name for the database name. You
can now override that by specifying it in Settings.config:
You can also pass it to the constructor, which overrides everything:
store = MySQLObjectStore(db='foobar', user='prog', passwd='asdklfj')
I think using the setting would be more likely since that's the only
way to affect the SQL generation.
I did this because I will be running two test instances of my
application on the same server. One is automatically rebuilt every
night out of cvs, but also resets the data. The other has to be
manually updated, but preserves data and is more usable to outside
testers (since it will be updated only when cvs is known to be stable).
The MK docs are updated.
Get latest updates about Open Source Projects, Conferences and News.