VmDatabase class

A moor database that runs on the Dart VM.

Inheritance

Constructors

VmDatabase(File file, {bool logStatements: false})
Creates a database that will store its result in the file, creating it if it doesn't exist.
factory
VmDatabase.memory({bool logStatements: false})
Creates an in-memory database won't persist its changes on disk.
factory

Properties

delegate DatabaseDelegate
The DatabaseDelegate to send queries to.
final, inherited
dialect SqlDialect
The SqlDialect to use for this database engine.
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
impl QueryDelegate
read-only, inherited
isSequential bool
final, inherited
logStatements bool
read / write, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

beginTransaction() TransactionExecutor
Starts a TransactionExecutor.
inherited
close() Future<void>
Closes this database connection and releases all resources associated with it. Implementations should also handle close calls in a state where the database isn't open.
inherited
ensureOpen(QueryExecutorUser user) Future<bool>
Opens the executor, if it has not yet been opened.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
runBatched(BatchedStatements statements) Future<void>
Prepares and runs statements. [...]
inherited
runCustom(String statement, [List args]) Future<void>
Runs a custom SQL statement without any variables. The result of that statement will be ignored.
inherited
runDelete(String statement, List args) Future<int>
Runs an delete statement and returns how many rows where affected.
inherited
runInsert(String statement, List args) Future<int>
Runs an insert statement with the given variables. Returns the row id or the auto_increment id of the inserted row.
inherited
runSelect(String statement, List args) Future<List<Map<String, dynamic>>>
Runs a select statement with the given variables and returns the raw results.
inherited
runUpdate(String statement, List args) Future<int>
Runs an update statement with the given variables and returns how many rows where affected.
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited