SchemaStatement class

Represents a single schema statement and optional structured payload.

final statement = SchemaStatement(
  'CREATE TABLE users (id INTEGER PRIMARY KEY)',
  parameters: [],
);

Constructors

SchemaStatement(String sql, {List<Object?> parameters = const [], StatementPayload? payload})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
parameters List<Object?>
Statement parameters rendered alongside sql.
final
payload → StatementPayload?
Optional structured payload that accompanies the statement.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sql String
SQL text that will execute during the schema plan.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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