haXe, Node.js Object Store

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

haXe, Node.js Object Store

blackdog

I’ve posted here a first cut 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 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.


-- 
Simplicity is the ultimate sophistication. ~ Leonardo da Vinci

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: haXe, Node.js Object Store

sledorze
Sounds very interesting :)
Reply | Threaded
Open this post in threaded view
|

Re: haXe, Node.js Object Store

sledorze
In reply to this post by blackdog
Sounds very interesting :)