aleclarson / rethinkdb-mock

In-memory RethinkDB
7 stars 3 forks source link

`nonAtomic` options are not supported #15

Open aleclarson opened 7 years ago

aleclarson commented 7 years ago
const users = db.table('users')
users.insert({}, {nonAtomic: true}).run()
users.get(1).replace({}, {nonAtomic: true}).run()

This might be a tough one to solve. We need to figure out which queries are non-deterministic, and return an {errors, first_error} response when an insert or replace query is non-deterministic and doesn't have {nonAtomic: true}.