Help us shape the future of Go! Take the 2026 Go Developer Survey

sqlite

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTagUnsupported   = errors.New("config store schema does not support tag queries")
	ErrInvalidKeyParts  = errors.New("invalid config store key parts")
	ErrUnknownIndexName = errors.New("unknown config store index")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	SQLitePath string `json:"sqlite_path,omitempty"`
}

type JSONConfigStore

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

func (*JSONConfigStore) Create

func (s *JSONConfigStore) Create(ctx context.Context, obj any) error

func (*JSONConfigStore) Delete

func (s *JSONConfigStore) Delete(ctx context.Context, keyParts ...any) error

func (*JSONConfigStore) Get

func (s *JSONConfigStore) Get(ctx context.Context, keyParts ...any) (any, error)

func (*JSONConfigStore) GetByIndex

func (s *JSONConfigStore) GetByIndex(ctx context.Context, indexName string, value any) (any, error)

func (*JSONConfigStore) List

func (s *JSONConfigStore) List(ctx context.Context) ([]any, error)

func (*JSONConfigStore) ListByTag

func (s *JSONConfigStore) ListByTag(ctx context.Context, tag string) ([]any, error)

func (*JSONConfigStore) ListByTagPrefix

func (s *JSONConfigStore) ListByTagPrefix(ctx context.Context, tagPrefix string) ([]any, error)

func (*JSONConfigStore) Update

func (s *JSONConfigStore) Update(ctx context.Context, obj any) error

type SQLiteConfigStoreCreator

type SQLiteConfigStoreCreator struct {
	SQLitePath string `json:"sqlite_path,omitempty"`
	// contains filtered or unexported fields
}

func Open

func Open(ctx context.Context, cfg Config, logger *zap.Logger) (*SQLiteConfigStoreCreator, error)

func (*SQLiteConfigStoreCreator) NewStore

func (*SQLiteConfigStoreCreator) Open

Jump to

Keyboard shortcuts

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