Skip to main content

Module sql

Module sql 

Source
Available on crate features model-mysql or model-postgres or model-sqlite only.
Expand description

SqlStore: relationship tuples in a database (SQLite, Postgres or MySQL through the model layer), with a short read cache.

Structs§

SqlStore
Tuples in the rws_authz_tuples table (created if missing): one row per tuple, keyed by the SHA-256 of its text so the key fits every database’s index limit, indexed by object and relation for checks.

Constants§

READ_CACHE
How long a read is reused (this process’s own writes clear it at once).