sqliteapp

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Migrate

func Migrate(db *sql.DB) error

Types

type Config

type Config struct {
	DBPath               string
	ReadOnly             bool
	AutoCreate           bool
	DefaultRowLimit      int
	StatementTimeout     time.Duration
	OpenBusyTimeoutMS    int
	EnableMultiStatement bool
	StatementAllowlist   []string
	StatementDenylist    []string
	RedactedColumns      []string
	RateLimitRequests    int
	RateLimitWindow      time.Duration
}

Config controls sqlite runtime behavior.

func DefaultConfig

func DefaultConfig() Config

func (Config) Normalize

func (c Config) Normalize() Config

func (Config) Validate

func (c Config) Validate() error

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

func NewRuntime

func NewRuntime(config Config) (*Runtime, error)

func (*Runtime) Close

func (r *Runtime) Close() error

func (*Runtime) Config

func (r *Runtime) Config() Config

func (*Runtime) DB

func (r *Runtime) DB() *sql.DB

func (*Runtime) Open

func (r *Runtime) Open(ctx context.Context) error

func (*Runtime) Ping

func (r *Runtime) Ping(ctx context.Context) error

Jump to

Keyboard shortcuts

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