StatementCompiler class abstract base

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

StatementCompiler()

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<Object, dynamic>> delete) → void
addDialectSpecificDefaultColumnConstraints(TableColumn<Object> column) → void
addDoNothing(DoNothing<Object, GeneratedTable<Object, dynamic>> clause) → void
addDoUpdate(DoUpdate<Object, GeneratedTable<Object, dynamic>> clause) → void
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<Object, dynamic>> insert) → void
addInsertDefaultValues(InsertDefaultValues source) → void
addInsertFromSelect(InsertFromSelect source) → void
addInsertFromValues(InsertFromValues source) → void
addInsertStatement(InsertStatement<Object, GeneratedTable<Object, dynamic>> insert) → void
addInsertStatementMode(InsertStatement<Object, GeneratedTable<Object, dynamic>> insert) → void
addJoin(Join join) → void
addJoinOperator(JoinOperator operator) → void
addLikeExpression(LikeExpression expr) → void
addLimit(Limit limit) → void
addLiteral(Literal<Object> literal) → void
addOnConflictConstraint({List<TableColumn<Object>>? target, WhereClause? where}) → void
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<Object, dynamic>> update) → void
addUpdateValues(Map<String, Expression<Object>> columns) → void
addUpsertMultiple(UpsertMultiple<Object, GeneratedTable<Object, dynamic>> multiple) → void
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