Skip to content

Latest commit

 

History

History
68 lines (43 loc) · 1.38 KB

README.md

File metadata and controls

68 lines (43 loc) · 1.38 KB

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.