1.0.4 • Published 4 years ago

@gnomedb/gnomedb v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

GnomeDB

GnomeDB is an in-memory DBMS (Database Management System) built on Node.js

Installation

Clone the repository and run npm installation command

npm install @gnomedb/gnomedb

Usage

const GnomeDB = require("@gnomedb/gnomedb")
const db = new GnomeDB();

const [marcus, lucius, pius, hadrian, trajan] = db.addFrom([
    { name: 'Marcus Aurelius', city: 'Rome', born: 121, dynasty: 'Antonine' },
    { name: 'Lucius Verus', city: 'Rome', born: 130, dynasty: 'Antonine' },
    { name: 'Antoninus Pius', city: 'Lanuvium', born: 86, dynasty: 'Antonine' },
    { name: 'Hadrian', city: 'Santiponce', born: 76, dynasty: 'Nerva–Trajan' },
    { name: 'Trajan', city: 'Sevilla', born: 98, dynasty: 'Nerva–Trajan' },
]);

console.log(db.find({ born: { $gt: 121 }, dynasty: 'Antonine' })); // Lucius Verus

Scripts

Run tests

npm run test

Generate typescript declarations

npm run types

Run linter

npm run lint

Authors

Yevgen Yakovliev (Github)

Mykola Chub (Github)

Artem Bondarchuk (Github)

Alina Dyachenko (Github)

Contributing

Contributions, issues and feature requests are welcome!

Feel free to check the issues page.

License

This project is MIT licensed.

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago