dbschema

package
v0.11.0-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: Apache-2.0, MIT Imports: 3 Imported by: 0

Documentation

Overview

Package dbschema owns SQL shared by application bootstrap and store startup. Keeping each definition here prevents CREATE IF NOT EXISTS from hiding incompatible definitions in independent entry points.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bootstrap

func Bootstrap(ctx context.Context, db *sql.DB, tables []string) error

Bootstrap applies shared-store upgrades (including goals and gateway state) and central tables atomically. Independent application stores retain their own separate migrations.

func FlowStates

func FlowStates(ctx context.Context, db *sql.DB) error

FlowStates is the independent daemon flow-state store, not agent_flows.

func GatewayBookmarks

func GatewayBookmarks(ctx context.Context, db *sql.DB) error

GatewayBookmarks and GatewayInputHistory share their owner locks and SQL with central bootstrap. GatewayDelivery is owned only by its store.

func GatewayDelivery

func GatewayDelivery(ctx context.Context, db *sql.DB) error

func GatewayInputHistory

func GatewayInputHistory(ctx context.Context, db *sql.DB) error

func Goals

func Goals(ctx context.Context, db *sql.DB) error

Goals shares atomic upgrades, accounting backfill and ownership with bootstrap.

func Routines

func Routines(ctx context.Context, db *sql.DB) error

func Suspensions

func Suspensions(ctx context.Context, db *sql.DB) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL