Documentation
¶
Overview ¶
Package store owns the SQLite database: schema migrations, config entity CRUD, and the connection shared with the queue implementation.
Index ¶
- type Store
- func (s *Store) Close() error
- func (s *Store) DB() *sql.DB
- func (s *Store) DeleteConnector(ctx context.Context, id string) error
- func (s *Store) DeleteSink(ctx context.Context, id string) error
- func (s *Store) DeleteSource(ctx context.Context, id string) error
- func (s *Store) GetConnector(ctx context.Context, id string) (model.Connector, error)
- func (s *Store) GetSink(ctx context.Context, id string) (model.Sink, error)
- func (s *Store) GetSource(ctx context.Context, id string) (model.Source, error)
- func (s *Store) IsEmpty(ctx context.Context) (bool, error)
- func (s *Store) KnownConnectorIDs(ctx context.Context) ([]string, error)
- func (s *Store) ListConnectors(ctx context.Context) ([]model.Connector, error)
- func (s *Store) ListSinks(ctx context.Context) ([]model.Sink, error)
- func (s *Store) ListSources(ctx context.Context) ([]model.Source, error)
- func (s *Store) LoadConfig(ctx context.Context) (model.Config, error)
- func (s *Store) PutConnector(ctx context.Context, v model.Connector) error
- func (s *Store) PutSink(ctx context.Context, v model.Sink) error
- func (s *Store) PutSource(ctx context.Context, v model.Source) error
- func (s *Store) ReplaceConfig(ctx context.Context, cfg model.Config) error
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 (*Store) DeleteConnector ¶
func (*Store) GetConnector ¶ added in v1.2.3
func (*Store) KnownConnectorIDs ¶
KnownConnectorIDs returns every connector id that has aggregate or checkpoint state. Append maintains the aggregate transactionally, so this lookup never scans the retained-envelope table.
func (*Store) ListConnectors ¶ added in v1.2.3
func (*Store) ListSources ¶ added in v1.2.3
func (*Store) PutConnector ¶
Click to show internal directories.
Click to hide internal directories.