Skip to content

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).

optional write?: (table, row) => boolean

Defined in: server/src/sql-engine.ts:47

string

Record<string, unknown>

boolean