DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SQL
sqlalchemy return id after insert
f = Foo(bar='x') session.add(f) session.flush() print(f.id) # will return the obj id
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#sqlalchemy
#return
#id
#insert
ADD COMMENT
Topic
COMMENT
Name
2+1 =
Submit