backbone.lovefield
lovefield backend for backbone.
This adapter is inspired by backbone.localStorage and backbone-indexeddb. I wanted to use more than localStorage, yet backbone-indexeddb wouldn't play well with backbone.validation.
;;; // Create schema and make sure connection// is available before defining models and collections.// sb = lf.schema.create('dbname', 1);// conn = undefined;// sb.connect().then(function (db){conn=db;}) const TableStore = conn 'tablename'; const MyModel = BackboneModel; const MyCollection = BackboneCollection;