1.1.0 • Published 6 years ago

pidb v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

pidb

Simple JSON database

API

Description
init(storage: string)Storage path to init the database
collections()List all collections in storage
collection(name)If collection exists documents are read in memory. Otherwise a new empty collection is created
sync()Write data on disk

Collection API

Description
documents()List all documents in collection
find(query)Find documents
findOne(query)Find one document
push(document)Creates a new document in collection
update(id, data)Update document
remove(id)Remove document
drop()Delete the collection
1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago