sqlite

package
v0.70.11 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultMaxConnections = 5

DefaultMaxConnections is the default SQLite connection pool size.

View Source
const ProviderName = "sqlite"

ProviderName is the plugin selector used to register SQLite metadata.

Variables

This section is empty.

Functions

func NewSQLStore added in v0.69.0

func NewSQLStore(
	config Config,
	dependencies metadata.ProviderDependencies,
) (*sqlstore.Store, error)

NewSQLStore opens the shared database/sql SQLite implementation.

func RegisterProvider added in v0.68.0

func RegisterProvider(host *hostplugin.Host) error

RegisterProvider registers the SQLite metadata provider with host.

Types

type Config added in v0.68.0

type Config struct {
	// DataDir overrides the application-wide database path for this provider.
	// An empty value uses ProviderDependencies.DataDir.
	DataDir        string `yaml:"dataDir"`
	MaxConnections int    `yaml:"maxConnections"`
}

Config contains SQLite-specific configuration.

Jump to

Keyboard shortcuts

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