Re: [SQLObject] is there a way to (re)set generator?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Petr J. <pet...@tp...> - 2010-04-19 11:52:33
|
> OMG, you did mean FB generator, not Python! You need to be more specific. > (-: > > Sorry about that, my feeling was all SQL engines are using ID generators to store in it. > You need to run your own SQL queries. Something like this: > > self.query("DROP GENERATOR GEN_%s" % soClass.sqlmeta.table) > self.query("CREATE GENERATOR GEN_%s" % soClass.sqlmeta.table) > > And there is perhaps SQL commands to reset the generator. I know nothing > about FB so I cannot help. Look it up in the FB docs. > This is not a problem, I was just wondering if I am not overlooking something more Pythonic. Thanks for your comments anyway. Regards Petr Jakes |