haskell-relational-record
haskell-relational-record copied to clipboard
"returning id" with postgresql
Hello again,
For inserts with auto increment primary keys [1], how can get the ID of a new row inserted?
Having a hard time finding it in the documentation and source code.
Thanks.
[1] http://www.postgresql.org/docs/9.1/static/sql-insert.html
bump
@khibino doesn't plan to add non-SQL-standard features to HRR to keep it easy to maintain portability.
So I guess this feature would also be rejected.
You have to use some unsafe*
APIs to implement such features.
(Sorry, I can't answer which API is suitable for your need)