globalstorage icon indicating copy to clipboard operation
globalstorage copied to clipboard

Cursor.transaction(), .commit() and .rollback()

Open tshemsedinov opened this issue 8 years ago • 2 comments

Conceptual code:

var c1 = gs.select({ category: 'Person', name: 'Marcus Aurelius' }).transaction(5000);
if (age) {
  c1.modify({ age: age }).commit();
} else {
  c1.rollback();
}

tshemsedinov avatar Dec 02 '16 19:12 tshemsedinov

@tshemsedinov, any progress with this issue? It seems to be a vital part of database interface, because it is hard to create software without any guarantees of data consistency.

belochub avatar Mar 27 '17 16:03 belochub

I see but do you need this feature for current project?

tshemsedinov avatar Mar 27 '17 17:03 tshemsedinov