Skip to content

RefusalReason

RefusalReason = "engine" | "no-schema" | "locked" | "closed" | "transaction"

Defined in: libs/session/src/session.ts:26

Why a session refused. A caller branches on this, never on message text.

  • engine: TypeQLite itself refused the statement. message is the engine’s own.
  • no-schema: a statement other than a define ran before any schema was applied.
  • locked: another connection holds the file’s write lock (SQLite arbitrates two sessions on one file).
  • closed: the session was closed.
  • transaction: a begin inside a transaction, or a commit or rollback with none open.

TypeDBLite is an independent open-source project, built on TypeDB with thanks. It is not affiliated with, sponsored by, or endorsed by TypeDB Ltd. Released under the MPL-2.0 license.