Versions in this module Expand all Collapse all v1 v1.0.0 Nov 10, 2026 Changes in this version + var ErrConflict = errors.New("conflict") + var ErrConstraint = errors.New("constraint violation") + var ErrNoRowKey = errors.New("no single-column primary key") + var ErrReadOnly = errors.New("views are read-only") + var ErrRowNotFound = errors.New("row not found") + type AllowFunc func(table string) bool + type Options struct + Allow AllowFunc + MaxPageSize int + type Row = map[string]any + type SQLStore struct + func NewSQLStore(db *sql.DB, introspector schema.Introspector, opts Options) *SQLStore + func (s *SQLStore) Delete(ctx context.Context, table, pk string) error + func (s *SQLStore) Get(ctx context.Context, table, pk string) (Row, error) + func (s *SQLStore) Insert(ctx context.Context, table string, row Row) (Row, error) + func (s *SQLStore) List(ctx context.Context, table string, req query.ListRequest) ([]Row, error) + func (s *SQLStore) Tables(ctx context.Context) ([]schema.Table, error) + func (s *SQLStore) Update(ctx context.Context, table, pk string, row Row) (Row, error) + type Store interface + Delete func(ctx context.Context, table, pk string) error + Get func(ctx context.Context, table, pk string) (Row, error) + Insert func(ctx context.Context, table string, row Row) (Row, error) + List func(ctx context.Context, table string, req query.ListRequest) ([]Row, error) + Tables func(ctx context.Context) ([]schema.Table, error) + Update func(ctx context.Context, table, pk string, row Row) (Row, error)