Versions in this module Expand all Collapse all v0 v0.2.0 Oct 13, 2026 v0.1.0 Oct 13, 2026 Changes in this version + const BindingTable + const ConnectionTable + const CredentialTable + const GrantTable + const LeaseTable + type Dialect string + const Postgres + const SQLite + type Option func(*Store) + func WithClock(c cf.Clock) Option + func WithTxHook(h TxHook) Option + type Store struct + func New(db *sql.DB, d Dialect, opts ...Option) (*Store, error) + func (s *Store) Acquire(ctx context.Context, key string, ttl time.Duration) (cf.Lease, error) + func (s *Store) ActiveCredential(ctx context.Context, owner cf.OwnerID, id string) (cf.Credential, error) + func (s *Store) CreateConnection(ctx context.Context, in cf.Connection) (cf.Connection, error) + func (s *Store) DeleteConnection(ctx context.Context, owner cf.OwnerID, id string) error + func (s *Store) DestroyCredentials(ctx context.Context, owner cf.OwnerID, id string) error + func (s *Store) GetConnection(ctx context.Context, owner cf.OwnerID, id string) (cf.Connection, error) + func (s *Store) ListBindings(ctx context.Context, owner cf.OwnerID, id string) ([]cf.Binding, error) + func (s *Store) ListConnections(ctx context.Context, owner cf.OwnerID, f cf.Filter) ([]cf.Connection, error) + func (s *Store) ListGrants(ctx context.Context, owner cf.OwnerID, id string) ([]cf.Grant, error) + func (s *Store) Migrate(ctx context.Context) error + func (s *Store) PutBinding(ctx context.Context, b cf.Binding) error + func (s *Store) PutGrant(ctx context.Context, g cf.Grant) error + func (s *Store) RemoveBinding(ctx context.Context, owner cf.OwnerID, id string, cons cf.Consumer, ...) error + func (s *Store) RemoveGrant(ctx context.Context, owner cf.OwnerID, id string, p cf.Principal) error + func (s *Store) SwapCredential(ctx context.Context, expectActive int, next cf.Credential) error + func (s *Store) Tables() []string + func (s *Store) UpdateConnection(ctx context.Context, in cf.Connection) (cf.Connection, error) + type TxHook func(ctx context.Context, tx *sql.Tx) error