knadh / localStorageDB

A simple database layer for localStorage and sessionStorage for creating structured data in the form of databases and tables
http://nadh.in/code/localstoragedb
814 stars 128 forks source link

Check if a commit is successful #25

Closed alexgetty closed 10 years ago

alexgetty commented 10 years ago

Please correct me if I'm wrong, but I don't see anywhere in the documentation to check if a commit has been successful. Is this possible? As of now, commit() returns 'undefined' but it would be really useful if it was possible to get at least a boolean value as to the result of the commit.

P.S. I just discovered localStorageDB today and, as a novice, it was incredible easy to pick up. I'm very interested in using localstorage to experiment with some personal projects and am excited in the prospect of using this to make it that much easier. Thanks for this great resource!

knadh commented 10 years ago

Thanks! The 0eacff9482438362c3cf808213778bc2d9e62dbb adds a return value (true/false) to commit() :)