Documentation
¶
Overview ¶
Package backends resolves declarative index/query strategies independently of their database drivers. Built-ins are embedded so binaries are portable.
Index ¶
- func DefaultNames() []string
- type Backend
- func (w Backend) CLILoader(connection string) (*drivers.CLILoader, error)
- func (w Backend) ConfigureDriver(driver drivers.Driver)
- func (w Backend) ContainerName() string
- func (w Backend) DriverConfig() (drivers.DriverConfig, error)
- func (w Backend) EnvironmentVariable() string
- func (w Backend) NewDriver(connection string) (drivers.Driver, error)
- func (w Backend) ResolveConnection(explicit string) (string, error)
- type Extras
- type Manifest
- type Query
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultNames ¶
func DefaultNames() []string
DefaultNames preserves the loader's historical default targets. Each name must resolve to a backend manifest; registering a driver never adds a target.
Types ¶
type Backend ¶
func Builtin ¶
Builtin reads only the embedded manifest, including for historical dashboard recordings that must not depend on local overrides.
func Resolve ¶
Resolve uses an external global manifest (if present), otherwise an embedded manifest. A registered driver alone is never a backend. The optional dataset manifest replaces whole top-level fields, including extras; it does not merge nested lists. dir defaults to ./backends; an explicitly supplied directory must exist.
func (Backend) ConfigureDriver ¶
ConfigureDriver applies PostgreSQL backend capture and telemetry settings.
func (Backend) ContainerName ¶
func (Backend) DriverConfig ¶
func (w Backend) DriverConfig() (drivers.DriverConfig, error)
func (Backend) EnvironmentVariable ¶
func (Backend) ResolveConnection ¶
ResolveConnection gives explicit configuration precedence over environment and manifest defaults. Drivers that support connection-free configuration may resolve their own endpoint (for example, Turbopuffer region settings).
type Extras ¶
type Extras struct {
GUCs []string `yaml:"gucs"`
GUCPrefixes []string `yaml:"gucPrefixes"`
Queries []Query `yaml:"queries"`
// When present, replace the driver's index-I/O access methods while keeping
// its standard PostgreSQL telemetry. An empty list disables index I/O only.
IndexAccessMethods []string `yaml:"indexAccessMethods"`
}