CheckedSql class final

PostgreSQL autocommit SQL with explicit recovery conditions. Both checks must return exactly one boolean. They describe durable state, not an object name alone.

Inheritance

Constructors

CheckedSql(String sql, {required String readyWhen, required String doneWhen})
Pairs autocommit SQL with explicit readiness and completion probes.
const
CheckedSql.createIndex(String table, IndexSchema index, {String? namespace})
A concurrent, ascending B-tree index with default collation/opclasses. The completion check compares its definition as well as ready/valid state.
factory

Properties

doneWhen → String
SELECT returning one boolean that confirms the durable result.
final
hashCode → int
The hash code for this object.
no setterinherited
readyWhen → String
SELECT returning one boolean that confirms execution is safe to start.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sql → String
Trusted PostgreSQL statement executed outside a transaction.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
Stable operation data used in migration checksums and reports.
override
toString() → String
A string representation of this object.
inherited

Operators

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