|
|
|
|
|
by c-smile
2283 days ago
|
|
Just for the note: Sciter implements what I call "an ultimate data persistence solution" - NoSQL DB integrated right into script VM. You can open storage as: var storage = Storage.open("path/to/data/file.db");
Storage provides root object - normal script object (or array) that can be updated by normal script means: storage.root = { foo:[1,2,3], bar: {...} };
storage.root.foo.push(4);
storage.root.bar.newProp = 42;
All script objects that are accessible from the storage.root are persist-able - pushed to HD on storage.close() or storage.commit();More details about architecture and implementation:
https://sciter.com/data-persistence-in-sciter-database-integ... Overall feature set is close to MongoDB (modulo sharding). DB layer uses Konstantin Knizhnik's DyBASE pretty much as it is: http://www.garret.ru/dybase.html |
|