1602 / jugglingdb

Multi-database ORM for nodejs: redis, mongodb, mysql, sqlite3, postgresql, arango, in-memory...
http://1602.github.io/jugglingdb/
2.04k stars 241 forks source link

upsert directly calls create if id column is not specified #319

Open jbrick opened 11 years ago

jbrick commented 11 years ago

There's cases where I would want to use upsert without the id column being specified. An example of this is having an auto_increment SQL column that has other unique indexes that are not id.