GizStack
View .mdOpen in ChatGPTOpen in Claude

gizdb

The database: SQL, typed models, transactions, vectors and the PostgreSQL-protocol server. Import a module by name, for example import * as Store from "gizdb:store";. Each page lists the module's public declarations exactly as an installed toolchain provides them.

ModulePurpose
gizdb:accessThe native application boundary of db/server's existing actor.
gizdb:core/analyzerText analysis: the tokens of a text for the inverted index and for queries.
gizdb:core/vectorNearest-neighbour search over a vector column: a HNSW graph per segment (Malkov and Yashunin; the layout of hnswlib and USearch: a flat neighbour array for layer 0, the few upper-layer nodes in their own arrays), and an exact scan where it is cheaper or the filter is selective.
gizdb:dataA stored application's typed records, by their Model.Shape: on a GizDB engine this process serves, or on a SQL store.
gizdb:decimalExact decimals, as PostgreSQL's NUMERIC: a value is C × 10^-s with a scale s of 0..16383 and at most 131072 digits before the point.
gizdb:errorTyped failures shared by database owners; protocol spelling lives in sql/errors.giz.
gizdb:gatewho may read and write which rows of a Shape.
gizdbgizdb, the embedded GizDB: open a database in a folder, run SQL in a session and read its values.
gizdb:modela record type's meaning as a value (a Shape), and what is derived from it besides HTML: typed input validation, SQL wire rows, DDL for SQLite and PostgreSQL, additive migration, JSON and agent tool schemas.
gizdb:policyThe DAL's Policy (GIZSTACK-PLATFORM §3 item 5).
gizdb:queryA stored table that follows a record type.
gizdb:relayrealtime as a position in a log the database keeps.
gizdb:schemaOne pure schema planner.
gizdb:semanticAnalytical meaning is metadata attached to stable declarations.
gizdb:server/serverThe authoritative DB actor: one Ready loop owns Engine publication, durability, recovery, checkpoint work and the PostgreSQL, Kafka and RESP transports.
gizdb:sourceOne typed data-source contract.
gizdb:sql/types/dialectA SQL dialect as a value: its name and the rules where the engines it imitates differ in meaning, not spelling.
gizdb:storethe database a web app keeps its records in, one call shape over three engines.
gizdb:typedTyped data contracts: Slot, Codec, the codecs, logical Contract and the exact JSON transport of a Value.
gizdb:valueValues, types and schemas, and their one binary encoding (used by the log and by segment files alike).