Grammar class abstract

Implementers

Constructors

Grammar()

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

compileAdd(Blueprint blueprint) List<String>
Compiles the statements to add columns to an existing table. (Migration tool)
compileChange(Blueprint blueprint) List<String>
Compiles the statements to change columns in an existing table. (Migration tool)
compileColumns(QueryBuilder<Model> query, List columns) String
compileComponents(QueryBuilder<Model> query) List<String>
Compiles components for a SELECT query. Subclasses can override this to change the order or components.
compileCreateTable(Blueprint blueprint) String
Compiles a CREATE TABLE statement. (Migration tool)
compileDelete(QueryBuilder<Model> query) String
Compiles a DELETE query into a SQL string.
compileDropColumn(Blueprint blueprint) List<String>
Compiles the statements to drop columns from an existing table. (Migration tool)
compileDropForeign(Blueprint blueprint) List<String>
Compiles the statements to drop a foreign key constraint. (Migration tool)
compileDropIndex(Blueprint blueprint) List<String>
Compiles the statements to drop an index. (Migration tool)
compileDropTable(String table) String
Compiles a DROP TABLE statement. (Migration tool)
compileGroups(QueryBuilder<Model> query, List<String> groups) String
compileHavings(QueryBuilder<Model> query) String
compileIndexes(Blueprint blueprint) List<String>
Compiles the index/constraint creation statements for a blueprint. (Migration tool)
compileInsert(QueryBuilder<Model> query, List<Map<String, dynamic>> values) String
Compiles an INSERT query into a SQL string.
compileJoins(QueryBuilder<Model> query, List<String> joins) List<String>
compileLimit(QueryBuilder<Model> query, int? limit) String
compileOffset(QueryBuilder<Model> query, int? offset) String
compileOrders(QueryBuilder<Model> query, String? orderBy) String
compileRenameColumn(Blueprint blueprint) List<String>
Compiles the statements to rename a column. (Migration tool)
compileSelect(QueryBuilder<Model> query) String
Compiles a SELECT query into a SQL string.
compileUnions(QueryBuilder<Model> query) String
compileUpdate(QueryBuilder<Model> query, Map<String, dynamic> values) String
Compiles an UPDATE query into a SQL string.
compileWheres(QueryBuilder<Model> query) String
concatenate(List<String> components) String
Concatenates components of a SELECT query.
formatBoolForDebug(bool value) String
Formats a boolean value for debug SQL output.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parameter(dynamic value) String
Returns a parameter placeholder.
prepareBindings(List bindings) List
Normalizes bindings for the specific database driver.
toString() String
A string representation of this object.
inherited
wrap(String value) String
Wraps a value (table or column name) in quotes.
wrapArray(List<String> values) List<String>
Wraps an array of values.

Operators

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