Skip to content

Function: cacheGrantStatements()

cacheGrantStatements(role): readonly string[]

Idempotent grants that make the (already-existing) AppKit cache schema fully usable by role. The ALTER DEFAULT PRIVILEGES lines cover the cache table whenever the schema owner creates it later.

Throws a ValidationError when role is not a plausible Postgres role name, since the value lands in an identifier position.

string

readonly string[]