store

package
v1.0.1 Latest Latest
Warning

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

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

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