Interface: AuthorizePolicy
このコンテンツはまだ日本語訳がありません。
Interface: AuthorizePolicy
Section titled “Interface: AuthorizePolicy”Defined in: server/src/sql-engine.ts:46
Predicate the engine consults before every write. Returning false
aborts the operation (the sync handler surfaces this as a rolled-back
mutation; the mutation id still advances so the client isn’t stuck
retrying it).
The row is the concrete post-defaults value for inserts, the current row for deletes, and both the pre-image and the post-image for updates (both must pass).
Properties
Section titled “Properties”write?
Section titled “write?”
optionalwrite?: (table,row) =>boolean
Defined in: server/src/sql-engine.ts:47
Parameters
Section titled “Parameters”string
Record<string, unknown>
Returns
Section titled “Returns”boolean