Versions in this module Expand all Collapse all v0 v0.2.0 Oct 15, 2026 Changes in this version type Store + func (s *Store) DeleteIf(ctx context.Context, site, collection, id string, rev docstore.Rev) (bool, error) + func (s *Store) UpdateIf(ctx context.Context, site, collection, id string, rev docstore.Rev, ...) (*docstore.Doc, error) v0.1.0 Oct 14, 2026 Changes in this version + type Store struct + func New(ctx context.Context, pool *pgxpool.Pool, schema string, autoMigrate bool) (*Store, error) + func Open(ctx context.Context, cfg config.PostgresConfig) (*Store, error) + func (s *Store) Close() error + func (s *Store) Collections(ctx context.Context, site string) ([]string, error) + func (s *Store) Count(ctx context.Context, site string) (int64, error) + func (s *Store) Create(ctx context.Context, site, collection, id string, data map[string]any, ...) (*docstore.Doc, error) + func (s *Store) Delete(ctx context.Context, site, collection, id string) (bool, error) + func (s *Store) DeleteSite(ctx context.Context, site string) error + func (s *Store) Get(ctx context.Context, site, collection, id string) (*docstore.Doc, error) + func (s *Store) Ping(ctx context.Context) error + func (s *Store) Put(ctx context.Context, site, collection, id string, data map[string]any, ...) (*docstore.Doc, error) + func (s *Store) Query(ctx context.Context, site, collection string, q docstore.Query) (*docstore.Page, error) + func (s *Store) Update(ctx context.Context, site, collection, id string, patch map[string]any, ...) (*docstore.Doc, error)