query property
Starts a query over the CTE while retaining the source's decoded row type.
The result belongs to the same database or transaction view as its source.
Implementation
Query<R, CteFields<F>> get query {
final fields = _table.createFields(TableRef(_table.schema));
return Query.internal(
_source.database,
fields,
QueryState(fields.table, ctes: [this]),
_table.selectRow(fields),
);
}