truffle icon indicating copy to clipboard operation
truffle copied to clipboard

Draft: TruffleDB LevelDB

Open tenthirtyone opened this issue 2 years ago • 1 comments

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

tenthirtyone avatar Feb 01 '22 22:02 tenthirtyone

The lines changed is deceptive, in all the work is ~350 lines of code supported by 700 of unit tests ...

<3

cds-amal avatar Feb 15 '22 12:02 cds-amal