Create a new instance of a Collection class.
Create an index on a collection.
Optionalopts: IndexOptsCheck and create the specified collection if it doesn't exist.
OptionaltxHandle: TransactionHandleGet the names of all available databases.
Check if a collection exists.
Optionalcollections: string | string[]Removes a database collection from the database.
Remove an index from a collection. Adapter-dependent.
Asynchronously removes one entry in a database or adds a new one if it doesn't exist. Usage e.g. for toggling a flag.
Experimental
Executes operations within a transaction. Automatically rolls back on error.
Receives a transaction-scoped object (tx) whose operations are executed
within the transaction context.
This feature is highly experimental and may change or be removed at any time.
db reference are NOT part of the transaction.Asynchronously updates one entry in a database or adds a new one if it doesn't exist.
Represents a database management class for performing CRUD operations.