@gnomedb/gnomedb

1.0.4 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @gnomedb/gnomedb

Weekly Downloads

5

Version

1.0.4

License

MIT

Unpacked Size

20.4 kB

Total Files

21

Last publish

Collaborators

  • jenyaftw