Skip to content

Glossary

A quick reference for MountSQLI terminology.

  • API Reference — the index of package entry points.
  • Auth — the @mountsqli/auth package (primitives + MountAuth).
  • Builder — the QueryBuilder that produces a QueryPlan. Immutable.
  • CacheBridge — sits between queries and the cache manager; handles reads/invalidation.
  • ColumnBuilder — phantom-typed factory for a column (int(), text(), …).
  • Compiler — turns a QueryPlan into { sql, params, columnTypes }.
  • ConfigdefineConfig({...}); the source of truth for the Db.
  • Dialect — decides SQL dialect + parameter style (? vs $N).
  • Driver — translates compiled SQL + params into rows. Thin transport.
  • FilterNode — structured filter (=, in, or, exists, …). What RLS compiles to.
  • InferTable — derives the row type from a Table.
  • IR (Intermediate Representation) — see QueryPlan.
  • Immutable — builder methods fork a new plan; never mutate this.
  • Migration — a SQL step recorded in _mount_migrations.
  • MockDriver — in-memory driver for plan-level unit tests.
  • MountError — structured, user-facing error (code + sanitized message).
  • Policy — an RLS rule compiled into FilterNode[].
  • QueryPlan — the data structure describing a query. The central contract.
  • RLS (Row-Level Security) — policies compiled into the plan as WHERE filters.
  • RBAC — role-based access control (Rbac).
  • Schema — your defineTable definitions.
  • Studio — the visual dashboard merged into mountsqli dev.
  • TokenStore — pluggable session storage (Memory/Sqlite/Pg).
  • If a term is unfamiliar, find its page via the sidebar — most have a dedicated guide.