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.
Click to show internal directories.
Click to hide internal directories.