neumino / thinky

JavaScript ORM for RethinkDB
http://justonepixel.com/thinky/
Other
1.12k stars 128 forks source link

Optimistic locking #588

Open cur3n4 opened 8 years ago

cur3n4 commented 8 years ago

Rough attempt at implementing optimistic locking.

neumino commented 8 years ago

Sounds reasonable to me, the current implementation seems to be working. I would have two little questions:

cur3n4 commented 8 years ago

I'll prepare a proper PR.

cur3n4 commented 7 years ago

Sorry for the delay, I have updated the PR. Renamed configuration option to version. I have included support for columns of type Date and Number . Strings are doable also but will require either adding support to generate UUID or use r.uuid(). Please let me know your thoughts.