haXe, Node.js Object Store
I’ve posted here a Sqlite backed object store for haXe/Node.js, fully asynchronous and Promise based. Classes or typedefs are stored as serialized objects and there’s no class annotation required.
No spod as it’s not async. The design is based on initial work i did with pstore, an experimental Redis object store.
There is a persistent hash. Usage.
There is a concept of “buckets”. A bucket contains an object of a given type. Usage.
The bucket provides indexing by supporting “indexers”, functions that are run on your object to produce an index key before the object is serialized to the data store on an insert or update. Indexer values are indexed ultimately by sqlite indexes. Indexers are the query mechanism too. If your indexer returns null, the object will be ignored in searches on that index.
You may link objects between buckets, thereby producing relations.
Future directions will be more drivers as required probably Redis to start, command line backup/dump to json.