Versions in this module Expand all Collapse all v0 v0.19.2 Jul 10, 2024 Changes in this version + var MigrationsFS embed.FS + type AddChannelParams struct + ClaimID string + Priority ChannelPriority + URL string + type AddVideoParams struct + Channel string + Checksum sql.NullString + Manifest pqtype.NullRawMessage + Path string + SDHash string + Size int64 + Storage string + TID string + URL string + type Channel struct + ClaimID string + CreatedAt time.Time + ID int32 + Priority ChannelPriority + URL string + type ChannelPriority string + const ChannelPriorityDisabled + const ChannelPriorityHigh + const ChannelPriorityLow + const ChannelPriorityNormal + func (e *ChannelPriority) Scan(src interface{}) error + type DBTX interface + ExecContext func(context.Context, string, ...interface{}) (sql.Result, error) + PrepareContext func(context.Context, string) (*sql.Stmt, error) + QueryContext func(context.Context, string, ...interface{}) (*sql.Rows, error) + QueryRowContext func(context.Context, string, ...interface{}) *sql.Row + type GetAllVideosForStorageLimitParams struct + Limit int32 + Offset int32 + Storage string + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) AddChannel(ctx context.Context, arg AddChannelParams) (Channel, error) + func (q *Queries) AddVideo(ctx context.Context, arg AddVideoParams) (Video, error) + func (q *Queries) DeleteVideo(ctx context.Context, tid string) error + func (q *Queries) GetAllChannels(ctx context.Context) ([]Channel, error) + func (q *Queries) GetAllVideos(ctx context.Context) ([]Video, error) + func (q *Queries) GetAllVideosForStorage(ctx context.Context, storage string) ([]Video, error) + func (q *Queries) GetAllVideosForStorageLimit(ctx context.Context, arg GetAllVideosForStorageLimitParams) ([]Video, error) + func (q *Queries) GetChannel(ctx context.Context, claimID string) (Channel, error) + func (q *Queries) GetVideo(ctx context.Context, sdHash string) (Video, error) + func (q *Queries) RecordVideoAccess(ctx context.Context, sdHash string) error + func (q *Queries) WithTx(tx *sql.Tx) *Queries + type Video struct + AccessCount sql.NullInt32 + AccessedAt time.Time + Channel string + Checksum sql.NullString + CreatedAt time.Time + ID int32 + Manifest pqtype.NullRawMessage + Path string + SDHash string + Size int64 + Storage string + TID string + URL string + UpdatedAt sql.NullTime