Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
muhqu
on Nov 12, 2012
|
parent
|
context
|
favorite
| on:
RethinkDB: An open-source distributed database bui...
I think you, ww520, have a very well point here and I'm also interesten in what RethinkDB can offer for this very usage scenario. From what I read from the ReQL command reference there it should be possible to do something like:
r.table('foo').get(5).update({ 'bar': r.branch(r['baz'] == 0, "foo", r.error("invalid baz!"))})
have not tested it, but this is how I understand it...
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: