import { Database } from "https://deno.land/x/aloedb@0.9.0/lib/database.ts";
Constructors
Create database collection to store documents.
Type Parameters
Properties
Database configuration.
Data writing manager.
In-Memory documents storage.
WARNING: It is better not to modify these documents manually, as the changes will not pass the necessary checks.
However, if you modify storage manualy, call the method await db.save()
to save your changes.
Methods
Count found documents.
Deletes all documents that matches the search query.
Deletes first found document that matches the search query.
Delete all documents.
Find multiple documents by search query.
Find document by search query.
Inserts multiple documents.
Load data from storage file.
Synchronously load data from storage file.
Write documents to the database storage file.
Called automatically after each insert, update or delete operation. (Only if autosave
mode enabled)
Modifies all documents that match search query.
Modifies an existing document that match search query.