3.0.0 • Published 1 year ago

gliph v3.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Gliph

A simple nosql database for node.js

Gliph is a simple nosql database for node.js made from scratch. It is a simple document database with minimal functionality. This is not meant to be a replacement for MongoDB or CouchDB, but rather a simple database for small projects and beginners.

Installation

npm install gliph

Documentation

setPath(path) -> Promise (void)

Sets the path to the database. Returns a promise that resolves when the database is ready.

get(table, id) -> Promise (object)

Gets a document from the database. Returns a promise that resolves with the document.

table(table) -> Promise (functions (all that are listed below except Gliph.table))

NOTE: table parameter is not required when you use the functions that are a result of Gliph.table(table).

Returns an object with functions that are bound to the table.

get(table, id) -> Promise (object)

Gets a document from the database. Returns a promise that resolves with the document.

getWithFilter(table,filter) -> Promise (array)

Gets all documents from the database that match the filter. Returns a promise that resolves with an array of documents.

insert(table, document) -> Promise (object)

Inserts a document into the database. Returns a promise that resolves with the inserted document.

update(table, filter, document) -> Promise (object)

Updates a document in the database. Returns a promise that resolves with the updated document.

remove(table, filter) -> Promise (object)

Removes a document from the database. Returns a promise that resolves with the deleted document.

Have fun with Gliph!

3.0.0

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

2.1.4

1 year ago

2.1.3

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago