DVMemoryRecordEngine class
An in-memory database that runs the record operations and no SQL.
It stands in for a document engine. Configured as DV.Database, a
surface that still writes a SQL string fails naming the statement, and one
written against DV.Database.records works -- which is what a project on
MongoDB will see. For tests; the development database that runs the
framework's SQL is MemoryDVDatabaseAdapter.
- Implemented types
- Available extensions
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
classify(
DVSchemaChange change) → Future< DVSchemaChangeClass?> -
Available on DVDatabaseAdapter, provided by the DVDatabaseAdapterSchemaClassification extension
-
count(
String collection, {DVFilter? where}) → Future< int> -
How many records
wherepicks.override -
delete(
String collection, {required DVFilter where}) → Future< int> -
Removes the records
wherepicks, and answers how many.override -
ensure(
DVRecordShape shape) → Future< void> -
The collection exists with
shape's fields.override -
execute(
String sql, [List< Object?> ? params]) → Future<int> -
override
-
find(
String collection, {DVFilter? where, List< DVSort> orderBy = const <DVSort>[], int? limit, int? offset, List<String> ? fields}) → Future<List< Map< >String, Object?> > -
The records
wherepicks, inorderBy, at mostlimitof them after skippingoffset, with onlyfieldswhen given.override -
insert(
String collection, Map< String, Object?> record) → Future<void> -
Adds one record.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
query(
String sql, [List< Object?> ? params]) → Future<List< Map< >String, Object?> > -
override
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
String collection, Map< String, Object?> changes, {required DVFilter where}) → Future<int> -
Applies
changesto the recordswherepicks, and answers how many.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited