SqliteSchemaGrammar class

SQLite DDL. Types are loose: everything textual is text, booleans and dates travel as integers/ISO-8601 text, matching SqliteGrammar.encode.

Inheritance

Constructors

SqliteSchemaGrammar()
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

boolLiteral(bool value) → String
How a bool default is written.
override
compileAlter(Blueprint blueprint) → List<String>
One statement per added column, column index and command.
inherited
compileColumn(ColumnDefinition column) → String
inherited
compileColumnListing(String table) → Compiled
(sql, bindings) returning a name column per column of table.
override
compileCommand(String table, SchemaCommand command) → String
SQLite cannot add a primary key to an existing table.
override
compileCreate(Blueprint blueprint) → List<String>
One CREATE TABLE followed by a CREATE INDEX per index.
inherited
compileDefault(Object? value) → String
inherited
compileDrop(String table) → String
inherited
compileDropIfExists(String table) → String
inherited
compileIndex(String table, IndexCommand index) → String
inherited
compileRename(String from, String to) → String
inherited
compileTableExists() → Compiled
(sql, bindings) selecting one row when the bound table name exists.
override
compileTableListing() → String
SQL selecting every user table name in the database (one column, no bindings) — used by Schema.dropAllTables.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
typeFor(ColumnDefinition column) → String
The SQL type for column.
override
wrap(String identifier) → String
Double-quotes an identifier (each dotted segment separately).
inherited

Operators

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