database

package
v0.2.19 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package database implements the functions, types, and contracts for the module.

Index

Constants

View Source
const (
	Module               = "storage.database"
	ErrDatabaseConfigNil = errors.String("database: config is nil")
)

Variables

View Source
var DefaultProvider component.Provider = func(ctx context.Context, h component.Handle) (any, error) {
	cfg, err := comp.AsConfig[databasev1.DatabaseConfig](h)
	if err != nil {
		return nil, err
	}
	return New(cfg)
}

DefaultProvider is the default provider for database components.

Functions

func Resolve added in v0.2.19

func Resolve(ctx context.Context, source any, opts *component.LoadOptions) (*component.ModuleConfig, error)

Resolve resolves the database configuration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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