Documentation
¶
Overview ¶
Package postgres implements the repo interface for all the services
Index ¶
- func DropTables(ctx context.Context, pool *pgxpool.Pool, tables Tables) error
- func Migrate(ctx context.Context, pool *pgxpool.Pool, tables Tables) error
- func ValidateSchema(ctx context.Context, pool *pgxpool.Pool, tables Tables) error
- type Repo
- func (r *Repo) Delete(ctx context.Context, path string) error
- func (r *Repo) Get(ctx context.Context, path string) (stowry.MetaData, error)
- func (r *Repo) List(ctx context.Context, q stowry.ListQuery) (stowry.ListResult, error)
- func (r *Repo) ListPendingCleanup(ctx context.Context, q stowry.ListQuery) (stowry.ListResult, error)
- func (r *Repo) MarkCleanedUp(ctx context.Context, id uuid.UUID) error
- func (r *Repo) Ping(ctx context.Context) error
- func (r *Repo) Upsert(ctx context.Context, entry stowry.ObjectEntry) (stowry.MetaData, bool, error)
- type TableMigration
- type Tables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (*Repo) ListPendingCleanup ¶
type TableMigration ¶
Click to show internal directories.
Click to hide internal directories.