sqlite

package module
v1.0.36 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package sqlite provides an SQLite-backed durable relay operation log.

It imports no SQLite driver. Applications own their selected driver, file permissions, busy timeout, encryption, and backup/restore policy.

Index

Constants

View Source
const (
	// MaxGroupIDBytes and MaxActorIDBytes prevent unbounded primary-key work.
	MaxGroupIDBytes = 1024
	MaxActorIDBytes = 255
)

Variables

View Source
var ErrSequenceRange = sqlrelay.ErrSequenceRange

ErrSequenceRange reports that a sequence or dot counter exceeds SQLite's signed INTEGER range.

Functions

This section is empty.

Types

type Config

type Config = sqlrelay.Config

Config bounds one retained operation log per group.

type Store

type Store = sqlrelay.Store

Store implements durable.Log. It does not close the supplied *sql.DB.

func New

func New(database *sql.DB, config Config) (*Store, error)

New validates provider limits around an application-owned database/sql pool. Call EnsureSchema with a migration role before accepting traffic.

Jump to

Keyboard shortcuts

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