SqlStatement class

Represents a structured SQL query being built.

Annotations

Constructors

SqlStatement.new({required SqlOperationType operationType, required String tableName, String? selectColumns, String? fromAlias, List<String>? insertColumns, String? insertValuesPlaceholders, List<Object?>? insertArguments, List<String>? updateSetClauses, List<Object?>? updateArguments, String? upsertConflictTarget, String? upsertUpdateSetClauses, List<String> whereClauses = const [], List<Object?> whereArguments = const [], String? orderBy, int? limit, int? offset})
const

Properties

fromAlias String?
final
hashCode int
The hash code for this object.
no setterinherited
insertArguments List<Object?>?
final
insertColumns List<String>?
final
insertValuesPlaceholders String?
final
limit int?
final
offset int?
final
operationType SqlOperationType
final
orderBy String?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectColumns String?
final
tableName String
final
updateArguments List<Object?>?
final
updateSetClauses List<String>?
final
upsertConflictTarget String?
final
upsertUpdateSetClauses String?
final
whereArguments List<Object?>
final
whereClauses List<String>
final

Methods

build() FinalSqlStatement
Builds the final SQL string and collects arguments.
copyWith({SqlOperationType? operationType, String? tableName, String? selectColumns, String? fromAlias, List<String>? insertColumns, String? insertValuesPlaceholders, List<Object?>? insertArguments, List<String>? updateSetClauses, List<Object?>? updateArguments, String? upsertConflictTarget, String? upsertUpdateSetClauses, List<String>? whereClauses, List<Object?>? whereArguments, String? orderBy, int? limit, int? offset}) SqlStatement
Creates a copy of this statement with the given fields replaced.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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