2.0.1 • Published 3 years ago

@warp-works/warpjs-persistence v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

WarpWorks - WarpJS Persistence

Abstract class to implement.

API

.close(forceClose)

Closes the database connection. Returns a promise.

.databases

Getter to list all databases available.

.collections

Getter to list all collections available.

.documents(collectionName, [query, convertId])

Retrieves documents given the query from the collection collectionName. If convertId is true.

.findOne(collectionName, [query, convertId])

Retrieve the document.

save(collectionName, doc)

Creates a new document in the collection collectionName.

update(collectionName, doc)

Updates the document doc in the collection collectionName.

.aggregate(collectionName, collectionJoinKey, foreignCollection, foreignKey, aggregationOutputName, matchQuery)

To document.

.makeBackup(outputFolder, config)

Create a backup of the database and put the output in outputFolder. Gets the implementation configuration from config. Returns a promise.

2.0.1

3 years ago

1.0.0-rc.1

3 years ago

2.0.0

3 years ago

0.1.5

5 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago