Versions in this module Expand all Collapse all v0 v0.1.1 May 26, 2026 v0.1.0 May 25, 2026 Changes in this version + type Store struct + func New(ctx context.Context, databaseURL string) (*Store, error) + func NewWithPool(pool *pgxpool.Pool) *Store + func (s *Store) Close() + func (s *Store) Create(ctx context.Context, tenantID int64, p *store.Page) error + func (s *Store) CreateDomain(ctx context.Context, d *store.Domain) error + func (s *Store) CreateTenant(ctx context.Context, t *store.Tenant) error + func (s *Store) Delete(ctx context.Context, tenantID int64, id int64) error + func (s *Store) DeleteDomain(ctx context.Context, tenantID, id int64) error + func (s *Store) DeleteTenant(ctx context.Context, id int64) error + func (s *Store) Get(ctx context.Context, tenantID int64, id int64) (*store.Page, error) + func (s *Store) GetByPath(ctx context.Context, tenantID int64, subsite, path string) (*store.Page, error) + func (s *Store) GetTenant(ctx context.Context, id int64) (*store.Tenant, error) + func (s *Store) List(ctx context.Context, tenantID int64, subsite string) ([]*store.Page, error) + func (s *Store) ListDomains(ctx context.Context, tenantID int64) ([]*store.Domain, error) + func (s *Store) ListTenants(ctx context.Context) ([]*store.Tenant, error) + func (s *Store) Ping(ctx context.Context) error + func (s *Store) Update(ctx context.Context, tenantID int64, p *store.Page) error + func (s *Store) UpdateTenant(ctx context.Context, t *store.Tenant) error