store

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package store defines the small database boundary used by BlockQueue.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialect

type Dialect string
const (
	DialectSQLite   Dialect = "sqlite"
	DialectPostgres Dialect = "postgres"
)

type Driver

type Driver interface {
	DB() *sql.DB
	Dialect() Dialect
	DriverName() string
	Close() error
}

Driver intentionally exposes only database/sql. SQL builders, rebinding, migrations, and sqlx are implementation details of the queue engine.

type Durability

type Durability string
const (
	DurabilityStrict   Durability = "strict"
	DurabilityBalanced Durability = "balanced"
)

type NotificationSource

type NotificationSource interface {
	Listen(context.Context, string) (<-chan string, error)
}

NotificationSource is an optional capability. Queue correctness never depends on notifications; supported drivers use them to avoid polling latency while bounded reconciliation remains the fallback.

type SQLiteMaintenanceSource

type SQLiteMaintenanceSource interface {
	SQLiteMaintenanceEnabled() bool
}

SQLiteMaintenanceSource marks a local SQLite driver that supports WAL checkpoint and incremental-vacuum pragmas. Remote SQLite-compatible drivers such as Turso intentionally do not implement this capability.

Directories

Path Synopsis
Package postgres provides the production PostgreSQL storage driver.
Package postgres provides the production PostgreSQL storage driver.
Package sqlite provides the production SQLite storage driver.
Package sqlite provides the production SQLite storage driver.
Package turso provides experimental libSQL/Turso storage support.
Package turso provides experimental libSQL/Turso storage support.

Jump to

Keyboard shortcuts

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