SqliteSchemaGrammar class
SQLite DDL. Types are loose: everything textual is text, booleans and
dates travel as integers/ISO-8601 text, matching SqliteGrammar.encode.
- Inheritance
-
- Object
- SchemaGrammar
- SqliteSchemaGrammar
Constructors
- SqliteSchemaGrammar()
-
const
Properties
Methods
-
boolLiteral(
bool value) → String -
How a
booldefault 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 anamecolumn per column oftable.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