node-modli / modli

A module for building models and adapters for multiple data sources
http://node-modli.github.io/modli/
MIT License
60 stars 2 forks source link

Standardize adapter metadata passthrough #2

Open TomFrost opened 8 years ago

TomFrost commented 8 years ago

Currently, some adapters pass back the written object on update() or create(), while others pass back a DB response object with metadata (here's looking at you, MySQL).

While the MySQL adapter could be fixed to pass back the written object, the meta information is valuable. I see two clear options for this:

Edit: For clarity, if the second method is chosen, the only change necessary to modli core would be documentation to standardize the convention.