AbsDatabase class abstract

Implementers

Constructors

AbsDatabase()

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

Operators

operator ==(Object other) bool
The equality operator.
inherited