On Wed, Nov 07, 2007 at 11:30:13PM +0100, Petr Jake?? wrote:
> I would like to use IDs generated by generator in my application.

   SQLObject either allows the user to generate an ID (outside of
SQLObject) or delegates the job of generating an ID to the connection. If
you want to generate an ID at the backend and pass it to INSERT queries you
can either run the queries to generate an ID (it's what you are doing now)
or create your own connection class and override _queryInsertID() method.
See how the method works for Postgres (pgconnection.py).

Oleg.
-- 
     Oleg Broytmann            http://phd.pp.ru/            [EMAIL PROTECTED]
           Programmers don't die, they just GOSUB without RETURN.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to