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

SqliteGenerator()

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 is INTEGER, so that one of a primary key is the rowid, a date or time TEXT, as angel3_orm_sqlite stores it, and a binary BLOB. 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 an INTEGER PRIMARY KEY AUTOINCREMENT, whose ids are never used again.
compileDefault(Object value) → String
The SQL of the default value of a column. A DateTime is UTC text, as angel3_orm_sqlite stores one ('2024-03-10 12:34:56.000000Z'), and so is currentTimestamp, where SQLite's CURRENT_TIMESTAMP would give UTC without its Z, which Dart reads as local time.
compileReference(MigrationColumnReference ref) → String
A REFERENCES of ref, of a table of the same database, as SQLite takes no schema there.