Re: [SQLObject] is there a way to (re)set generator?
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2010-04-19 11:38:05
|
On Mon, Apr 19, 2010 at 01:27:25PM +0200, Petr Jake?? wrote: > As I am on the Firebird, I can see only dropTable, createTable methods in > the: > > http://www.sqlobject.org/sqlobject/firebird/firebirdconnection.py.html > > There is not particular method to create new generator. OMG, you did mean FB generator, not Python! You need to be more specific. (-: 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. Oleg. -- Oleg Broytman http://phd.pp.ru/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |