InMemoryDatabase class
InMemory db holds for one connection only, if the connection closes, it vanishes
- Inheritance
-
- Object
- AbsDatabase
- SqliteDatabase
- InMemoryDatabase
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
-
addIdColumn(
Table t) → void -
inherited
-
addSchemaUpdate(
SchemaUpdate su) → void -
inherited
-
boolColumn(
String name, {bool allowNull = false, bool unique = false, Object? defaultValue}) → BoolColumn -
inherited
-
createIdColumn(
String name) → DbColumn -
inherited
-
currentVersion(
DbContext dbc) → Future< int> -
inherited
-
dateColumn(
String name, {bool allowNull = false, bool unique = false, Object? defaultValue}) → DateColumn -
inherited
-
dateTimeColumn(
String name, {bool allowNull = false, bool unique = false, Object? defaultValue}) → DateTimeColumn -
inherited
-
DeleteFrom(
Table tbl) → DeleteStatement -
inherited
-
doubleColumn(
String name, {bool allowNull = false, bool unique = false, Object? defaultValue}) → DoubleColumn -
inherited
-
InsertInto(
Table tbl) → InsertStatement -
inherited
-
intColumn(
String name, {bool allowNull = false, bool unique = false, Object? defaultValue}) → IntColumn -
inherited
-
lastId(
DbContext dbc) → Future< int> -
must be used before closing the connection
inherited
-
newContext(
) → Future< DbContext> -
inherited
-
newIndex(
String name, Table tbl, List< DbColumn> cols, {bool unique = false}) → Index -
inherited
-
newTable(
String name, List< DbColumn> fields) → Table -
implemented by the db, pass columns except primary and foreign keys
inherited
-
newTestingContext(
) → Future< DbContext> -
newView(
String name, AbsSelect select) → View -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
Select(
) → SelectStatement -
inherited
-
SelectDistinct(
) → SelectStatement -
inherited
-
SelectListItems(
Table tbl, Expr nameField) → SelectStatement -
inherited
-
stringColumn(
String name, int maxLength, {bool allowNull = false, bool unique = false, Object? defaultValue}) → StringColumn -
inherited
-
textColumn(
String name, {bool allowNull = false, bool unique = false, Object? defaultValue}) → TextColumn -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
Update(
Table tbl) → UpdateStatement -
inherited
-
updateSchemaIfNeeded(
DbContext dbc) → Future< void> -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited