SqliteGenerator class abstract
Compiles the columns, defaults and indexes of SQLite.
Names are quoted as PostgreSQL quotes them, in double quotes, which SQLite
takes too; a table may be qualified by the schema of an attached database,
such as main.users.
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
columnType(
MigrationColumn column) → String -
The SQLite type of
column, whose affinity is that of its values: an integer isINTEGER, so that one of a primary key is the rowid, a date or timeTEXT, asangel3_orm_sqlitestores it, and a binaryBLOB. Another type is as it is named. -
compileColumn(
MigrationColumn column, {bool constraints = true}) → String -
The definition of
column, after its name. A serial primary key is anINTEGER PRIMARY KEY AUTOINCREMENT, whose ids are never used again. -
compileDefault(
Object value) → String -
The SQL of the default
valueof a column. A DateTime is UTC text, asangel3_orm_sqlitestores one ('2024-03-10 12:34:56.000000Z'), and so iscurrentTimestamp, where SQLite'sCURRENT_TIMESTAMPwould give UTC without itsZ, which Dart reads as local time. -
compileReference(
MigrationColumnReference ref) → String -
A
REFERENCESofref, of a table of the same database, as SQLite takes no schema there.