alevy / postgresql-orm

An Haskell ORM (Object Relational Mapping) and migrations DSL for PostgreSQL.
http://simple.cx
GNU General Public License v3.0
78 stars 12 forks source link

Change destroy / destroyByRef return value #16

Closed charles-cooper closed 8 years ago

charles-cooper commented 8 years ago

From () to Either ValidationError Bool. The ValidationError is thrown when > 1 records are returned from DELETE (as that indicates there is something wrong with the schema). Otherwise True is returned for 1 record, False is returned for 0 records.

Fix #15

charles-cooper commented 8 years ago

@alevy any outstanding concerns on this one?

alevy commented 8 years ago

Nope. Sorry for the delay merging this