CSNW / sql-bricks

Transparent, Schemaless SQL Generation
http://csnw.github.io/sql-bricks
MIT License
204 stars 25 forks source link

Feature request: .returning() for delete() #40

Closed lyxell closed 10 years ago

lyxell commented 10 years ago

Currently the insert clause supports a returning method, would it be possible to add it for the delete statement as well? Its supported by (all major versions of?) postgres.

prust commented 10 years ago

@lyxell,

would it be possible to add it for the delete statement as well?

Sure, would you like to add it? @nickschwab recently added it for the update statement #30, so you can look at his diff to get an idea for what needs to be done. It'll probably be a little different now (probably easier, actually), after the recent refactoring in #38.

lyxell commented 10 years ago

Sure thing! #41