truffle
truffle copied to clipboard
Draft: TruffleDB LevelDB
Description
A WIP for all things related to truffledb. This draft provides a look at a leveldb implementation that provides the ability to define flexible classes for each model.
The lines changed is deceptive, in all the work is ~350 lines of code supported by 700 of unit tests, readme and a yarn.lock change for the new packages.
I suggest browsing the README for a look at how models are defined, their API and how to create model instances for db records. Then, check the src/storage/Model.js
file for the base class that holds the majority of the logic.
To Test
$ yarn test
The lines changed is deceptive, in all the work is ~350 lines of code supported by 700 of unit tests ...
<3