1.1.0 • Published 7 years ago

pidb v1.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 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

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago