Documentation
¶
Index ¶
- type Config
- type Store
- func (s *Store) Ack(ctx context.Context, logEntry *schemalog.LogEntry) error
- func (s *Store) Close() error
- func (s *Store) Fetch(ctx context.Context, schemaName string, version int) (*schemalog.LogEntry, error)
- func (s *Store) FetchLast(ctx context.Context, schemaName string, ackedOnly bool) (*schemalog.LogEntry, error)
- func (s *Store) Insert(ctx context.Context, schemaName string) (*schemalog.LogEntry, 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
}
Store is a postgres implementation of the schemalog.Store interface
func NewStoreWithQuerier ¶
func (*Store) Fetch ¶
func (s *Store) Fetch(ctx context.Context, schemaName string, version int) (*schemalog.LogEntry, error)
Fetch retrieves the log entry for the schema and version provided.
func (*Store) FetchLast ¶ added in v0.4.0
func (s *Store) FetchLast(ctx context.Context, schemaName string, ackedOnly bool) (*schemalog.LogEntry, error)
FetchLast retrieves the latest schema log entry for schemaName. If ackedOnly is set, the function returns the last acked entry. If ackedOnly is NOT set, the function returns the latest entry no matter the acked flag.
Click to show internal directories.
Click to hide internal directories.