Open cur3n4 opened 8 years ago
Sounds reasonable to me, the current implementation seems to be working. I would have two little questions:
type.number()
?type.number()
will behave as an auto increment field, type.string()
as an uuid and type.date()
as a timestamp.I'll prepare a proper PR.
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.
Rough attempt at implementing optimistic locking.