store

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package store owns the SQLite database: schema migrations, config entity CRUD, and the connection shared with the queue implementation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func Open

func Open(path string) (*Store, error)

func (*Store) Close

func (s *Store) Close() error

func (*Store) DB

func (s *Store) DB() *sql.DB

func (*Store) DeleteConnector

func (s *Store) DeleteConnector(ctx context.Context, id string) error

func (*Store) DeleteSink

func (s *Store) DeleteSink(ctx context.Context, id string) error

func (*Store) DeleteSource

func (s *Store) DeleteSource(ctx context.Context, id string) error

func (*Store) IsEmpty

func (s *Store) IsEmpty(ctx context.Context) (bool, error)

func (*Store) KnownConnectorIDs

func (s *Store) KnownConnectorIDs(ctx context.Context) ([]string, error)

KnownConnectorIDs returns every connector id that has queue or checkpoint rows — used to purge storage of connectors deleted from config.

func (*Store) LoadConfig

func (s *Store) LoadConfig(ctx context.Context) (model.Config, error)

func (*Store) PutConnector

func (s *Store) PutConnector(ctx context.Context, v model.Connector) error

func (*Store) PutSink

func (s *Store) PutSink(ctx context.Context, v model.Sink) error

func (*Store) PutSource

func (s *Store) PutSource(ctx context.Context, v model.Source) error

func (*Store) ReplaceConfig

func (s *Store) ReplaceConfig(ctx context.Context, cfg model.Config) error

ReplaceConfig transactionally replaces the whole configuration.

Jump to

Keyboard shortcuts

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