A compiler that iteratively builds SQL text by recursively visiting a tree of SqlComponents.
Each compiler instance creates a single StatementBuffer containing the SQL text, prepared statement parameters and information about involved tables.
Constructors
Properties
-
currentInsertStatement
↔ InsertStatement<
Object, GeneratedTable< ?Object, dynamic> > -
getter/setter pair
- dialect → DriftDialect
-
The dialect to use when compiling dialect-specific structures.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statement → StatementBuffer
-
The pending StatementBuffer used by this compiler instance.
latefinal
Methods
-
addAddColumnStatement(
AddColumnStatement stmt) → void -
addAggregateFunctionExpression(
AggregateFunctionExpression< Object> expr) → void -
addBegin(
BeginStatement stmt) → void - Write a BeginStatement statement.
-
addBetweenExpression(
BetweenExpression expression) → void -
addBinaryExpression(
BinaryExpression< Object> expr) → void -
addBinaryOperator(
BinaryOperator operator) → void -
addCaseWhenExpression(
CaseWhenExpression< Object, Object> expr) → void -
addCastExpression(
CastExpression< Object, Object> expr) → void -
addCollateExpression(
CollateExpression expr) → void -
addColumnCheckConstraint(
ColumnCheckConstraint constraint) → void -
addColumnDefaultConstraint(
ColumnDefaultConstraint< Object> constraint) → void -
addColumnForeignKeyConstraint(
ColumnForeignKeyConstraint constraint) → void -
addColumnGeneratedAs(
ColumnGeneratedAs constraint) → void -
addColumnNotNullConstraint(
ColumnNotNullConstraint constraint) → void -
addColumnPrimaryKeyConstraint(
ColumnPrimaryKeyConstraint constraint) → void -
addColumnReference(
SchemaColumn< Object> column) → void -
addColumnUniqueConstraint(
ColumnUniqueConstraint constraint) → void -
addCommaSeparated(
Iterable< SqlComponent> components) → void -
addCommit(
CommitStatement stmt) → void - Write a CommitStatement statement.
-
addCompoundOperator(
CompoundOperator operator) → void -
addCompoundSelect(
CompoundSelect select) → void -
addCreateIndexStatement(
CreateIndexStatement statement) → void -
addCreateTableStatement(
CreateTableStatement stmt) → void -
addCreateTriggerStatement(
CreateTriggerStatement statement) → void -
addCreateViewStatement(
CreateViewStatement create) → void -
addCurrentDateOrTimeExpression(
CurrentDateOrTimeExpression e) → void -
addCustom(
CustomComponent component) → void -
addDateExtractionOperator(
DateExtractionOperator< Object> e) → void -
addDeleteStatement(
DeleteStatement< Object, GeneratedTable< delete) → voidObject, dynamic> > -
addDialectSpecificDefaultColumnConstraints(
TableColumn< Object> column) → void -
addDoNothing(
DoNothing< Object, GeneratedTable< clause) → voidObject, dynamic> > -
addDoUpdate(
DoUpdate< Object, GeneratedTable< clause) → voidObject, dynamic> > -
addDropColumnStatement(
DropColumnStatement stmt) → void -
addDropStatement(
DropStatement stmt) → void -
addExistsExpression(
ExistsExpression e) → void -
addFrameBoundary(
FrameBoundary f) → void -
addFrameBoundaryElement(
num exp) → void -
addFrameExclude(
FrameExclude f) → void -
addFrameType(
FrameType f) → void -
addFromClause(
FromClause fromClause) → void -
addFromResultSet(
FromResultSet resultSet, {bool isWatching = true, UpdateKind? write}) → void -
addFunctionCallExpression(
FunctionCallExpression< Object> expression) → void -
addFunctionName(
Expression< Object> call, String name) → void -
addGroupBy(
GroupBy groupBy) → void -
addInsertColumnNames(
InsertStatement< Object, GeneratedTable< insert) → voidObject, dynamic> > -
addInsertDefaultValues(
InsertDefaultValues source) → void -
addInsertFromSelect(
InsertFromSelect source) → void -
addInsertFromValues(
InsertFromValues source) → void -
addInsertStatement(
InsertStatement< Object, GeneratedTable< insert) → voidObject, dynamic> > -
addInsertStatementMode(
InsertStatement< Object, GeneratedTable< insert) → voidObject, dynamic> > -
addJoin(
Join join) → void -
addJoinOperator(
JoinOperator operator) → void -
addLikeExpression(
LikeExpression expr) → void -
addLimit(
Limit limit) → void -
addLiteral(
Literal< Object> literal) → void -
addOnConflictConstraint(
{List< TableColumn< ? target, WhereClause? where}) → voidObject> > -
addOrderBy(
OrderBy orderBy) → void -
addOrderingTerm(
OrderingTerm term) → void -
addPositionalVariable(
int index) → void -
addReference(
String name) → void -
addRenameColumnStatement(
RenameColumnStatement stmt) → void -
addRenameTableStatement(
RenameTableStatement stmt) → void -
addResultSetExpressions(
ResultSetStructure structure) → void -
addReturningClause(
ReturningClause returning) → void -
addRollback(
RollbackStatement stmt) → void - Write a RollbackStatement statement.
-
addSelectStatement(
BaseSelectStatement< BaseSelectStatement, dynamic> select) → void -
addStarFunctionParameter(
StarFunctionParameter parameter) → void -
addSubquery(
Subquery< Object> e) → void -
addSubqueryExpression(
SubqueryExpression< Object> e) → void -
addTableColumnConstraints(
TableColumn< Object> column) → void -
addTableColumnDefinition(
TableColumn< Object> column) → void -
addTableModifiers(
CreateTableStatement stmt) → void -
addTablePrimaryKeyConstraint(
TablePrimaryKeyConstraint e) → void -
addTableUniqueKeyConstraint(
TableUniqueKeyConstraint e) → void -
addTuple(
ExpressionTuple< Object> tuple) → void -
addTypeName(
PhysicalSqlType< Object> type) → void -
addUnaryExpression(
UnaryExpression< Object> expr) → void -
addUnaryOperator(
UnaryOperator operator) → void -
addUnixTimestampToDateTime(
UnixTimestampToDateTime e) → void -
addUpdateStatement(
UpdateStatement< Object, GeneratedTable< update) → voidObject, dynamic> > -
addUpdateValues(
Map< String, Expression< columns) → voidObject> > -
addUpsertMultiple(
UpsertMultiple< Object, GeneratedTable< multiple) → voidObject, dynamic> > -
addVariable(
Variable< Object> variable) → void -
addWhereClause(
WhereClause where) → void -
addWindowFunctionExpression(
WindowFunctionExpression< Object> expr) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
writeExpression(
Expression< Object> expression, void write()) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited