Skip to content

API Reference

This reference covers the public exports from src/index.js.

Classes

  • DB — Singleton database initialization
  • QueryModel — Read-only query interface
  • TableModel — Full CRUD operations (extends QueryModel)
  • MigrationManager — Migration discovery and execution

Types

  • Schema Types — TableSchema, ColumnDefinition, Constraints, and related interfaces

Functions & Utilities

  • UtilitiescallDb, bootstrap, audit actor resolver functions

Errors

  • ErrorsDatabaseError, SchemaDefinitionError

A lightweight Postgres-first ORM layer.