I would like to use IDs generated by generator in my application. I am using Firebird DB.
Now I go like:
genVal = connection.queryOne("SELECT GEN_ID( GEN_PERSON, 1 ) FROM RDB$DATABASE")
or for Firebird
genVal = connection.queryOne("SELECT NEXT VALUE FOR GEN_PERSON FROM RDB$DATABASE")
Is there some other (more Pythonic) way how to get generator value?
Thanks for your reply