DAO constructor.
Data source
Table name
Private key name
Saves the document changes.
True if saved, false if not saved
Optional condition: DataFilter<any>Optional. Condition to check before updating.
Static countCounts instances
Data source name
Table name
Filter to apply
Additional query options
Static deleteDeletes rows
Data source name
Table name
Filter to apply
Static findFinds rows
Data source name
Table name
Filter to apply
Sort results by this field. Leave as null for default sorting
"asc" or "desc". Leave as null for default sorting
Number of rows to skip. Leave as -1 for no skip
Limit of results. Leave as -1 for no limit
List of fields to fetch from the table. Leave as null to fetch them all.
Additional query options
Static findStatic findFinds rows (stream) / Async
Data source name
Table name
Filter to apply
Sort results by this field. Leave as null for default sorting
"asc" or "desc". Leave as null for default sorting
Number of rows to skip. Leave as -1 for no skip
Limit of results. Leave as -1 for no limit
List of fields to fetch from the table. Leave as null to fetch them all.
Additional query options
Function to parse each row
Static findFinds rows (stream) / Sync
Data source name
Table name
Filter to apply
Sort results by this field. Leave as null for default sorting
"asc" or "desc". Leave as null for default sorting
Number of rows to skip. Leave as -1 for no skip
Limit of results. Leave as -1 for no limit
List of fields to fetch from the table. Leave as null to fetch them all.
Additional query options
Function to parse each row
Static getResolves and returns the current database driver.
The driver
The name of the data source
Static incrementAtomic increment
Data source name
Table name
Key name
Key value
Field to increment
Amount to increment
Static insertStatic insertStatic sumAggregation
Data source name
Table name
Filter to apply
Primary Key name
Field to aggregate
Static updateUpdates rows
Data source name
Table name
Filter to apply
Updated row
Generated using TypeDoc
Data Access object.