Metakit / @doeixd/metakit/sql

ClaimOptions

interface · packages/metakit/src/sqlStatements.ts:317

interface ClaimOptions {
  readonly rewritePolicy?: ForeignRewritePolicy
  readonly implementations?: ForeignImplementations
}

What lets toUpdate write the result of a custom operation: its claims.total, read only under a rewrite policy, as every reader of a claim reads it (Expr.ReaderOptions).

Members

ClaimOptions.rewritePolicy

property · packages/metakit/src/sqlStatements.ts:325

readonly rewritePolicy?: ForeignRewritePolicy

Lets the lowering read a custom operation's total claim: where it applies and every argument is known, from its value or its Schema, to be within its argument Schema, the call refuses only where an argument does, so its result can be written to a column. Absent, no claim is read, and a write of such a call is refused naming the operation and this option.

ClaimOptions.implementations

property · packages/metakit/src/sqlStatements.ts:327

readonly implementations?: ForeignImplementations

The implementations a verified policy's evidence was issued for (Conformance.checkOperation).