NOTE: work in progress! this is not a thing yet!
There are so many awesome databases out there! Yet, there are really just a few ways to use them from an application code. We need to query records based on a criteria, we need to insert records, we need to update them, and delete them.
This is an attempt to define a somewhat standard interface to create the model
part of a system. In a sense it is kind of an abstract implementation of the
active record married
with Promise
and decoupled from the actual persistence layer.
The idea here is to define a standard, which then can be reimplemented with different persistence layers underneath it. The point of all this exercise is to decouple the application level code from the persistence layer; and bring balance to the galaxy.
Active record, as any other, has its drawbacks. But, regardless of those it is almost unbeatably good at one thing: representing tabular data.
In the end you don't have to build your app logic on top of active record. In many cases it is simple enough to do so, in some it isn't. But, regardless to the case, it is much easier to talk to an active record than to a database directly.
Please refer to the docs section for the actual documentation and usage examples.
All code in this repository is released under the terms of the MIT license
Copyright (C) 2016 Nikolay Nemshilov