golazy.dev
–
golazy.dev
/
pg
/
pgmedia
Index
|
Files
package pgmedia ¶
import "golazy.dev/pg/pgmedia"
Functions ¶
func Migrations ¶
Migrations returns the PostgreSQL migrations required by the lazymedia repository.
func Migrations() lazymigrate.Source
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func New ¶
New creates a PostgreSQL-backed lazymedia repository.
func New(pool *pgxpool.Pool) *Repository
func (repo *Repository) DeleteVariant ¶
func (repo *Repository) DeleteVariant(ctx context.Context, sourceFileID, variantKey string, options ...any) ([]any, error)
func (repo *Repository) FindVariant ¶
func (repo *Repository) FindVariant(ctx context.Context, sourceFileID, variantKey string, options ...any) (lazymedia.Variant, []any, error)
func (repo *Repository) SaveVariant ¶
func (repo *Repository) SaveVariant(ctx context.Context, variant lazymedia.Variant, options ...any) (lazymedia.Variant, []any, error)
Package pgmedia implements a PostgreSQL repository for golazy.dev/lazymedia.