sqlitestate

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package sqlitestate implements connect.State on SQLite via modernc.org/sqlite (pure Go, no CGO) — the shipped default for connector bookkeeping. The database is connector-owned and fully reconstructible: deleting it costs one full reconcile, never data.

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
}

Store implements connect.State.

func Open

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

Open opens (creating if necessary) the connector state database at path.

func (*Store) Close

func (s *Store) Close() error

func (*Store) Cursor

func (s *Store) Cursor(ctx context.Context, workspaceID string) (server.Cursor, error)

func (*Store) DeleteShadow

func (s *Store) DeleteShadow(ctx context.Context, workspaceID, entity, key string) error

func (*Store) PutShadow

func (s *Store) PutShadow(ctx context.Context, workspaceID, entity, key string, sh connect.Shadow) error

func (*Store) ScanShadows

func (s *Store) ScanShadows(ctx context.Context, workspaceID string, fn func(entity, key string, sh connect.Shadow) error) error

func (*Store) SetCursor

func (s *Store) SetCursor(ctx context.Context, workspaceID string, c server.Cursor) error

func (*Store) SetSourceSync

func (s *Store) SetSourceSync(ctx context.Context, workspaceID string, sync connect.SourceSync) error

func (*Store) Shadow

func (s *Store) Shadow(ctx context.Context, workspaceID, entity, key string) (*connect.Shadow, error)

func (*Store) SourceSync

func (s *Store) SourceSync(ctx context.Context, workspaceID string) (connect.SourceSync, error)

Jump to

Keyboard shortcuts

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