Indeed, but that's not quite what I asked ;-)

I'm after setting the next value using, eg, setval:

http://www.postgresql.org/docs/current/static/functions-sequence.html

...or to do it on creation of the sequence:

http://www.postgresql.org/docs/current/static/sql-createsequence.html

I guess this might come into the stuff I was asking about in the "non-table DDL elements and MetaData objects" thread.

Chris

On 28/11/2015 18:04, Jonathan Vanasco wrote:
There is a `Sequence` object that can be delcared like a table

From the docs:

http://docs.sqlalchemy.org/en/latest/core/defaults.html#defining-sequences

seq  =  Sequence('some_sequence')
nextid  =  connection.execute(seq)
--
You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com <mailto:sqlalchemy+unsubscr...@googlegroups.com>. To post to this group, send email to sqlalchemy@googlegroups.com <mailto:sqlalchemy@googlegroups.com>.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

--
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to