postgres

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Schema string

Functions

func Migrate

func Migrate(ctx context.Context, db *sql.DB) error

Types

type Repository

type Repository struct{ DB *sql.DB }

func (*Repository) Activities

func (r *Repository) Activities(ctx context.Context, f s.ActivityFilter) ([]s.ActivitySnapshot, error)

func (*Repository) Apply

func (r *Repository) Apply(ctx context.Context, event s.Event, digest string) error

func (*Repository) ApplyActivity

func (r *Repository) ApplyActivity(ctx context.Context, event s.ActivityEvent, digest string) error

func (*Repository) Candidates

func (r *Repository) Candidates(ctx context.Context, f s.Filter) ([]s.Document, error)

func (*Repository) CheckRuntime

func (r *Repository) CheckRuntime(ctx context.Context) error

func (*Repository) Rebuild

func (r *Repository) Rebuild(ctx context.Context, load func(func([]s.Document) error, func([]s.ActivitySnapshot) error) error) error

Jump to

Keyboard shortcuts

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