Versions in this module Expand all Collapse all v1 v1.0.0 Sep 6, 2024 Changes in this version + type AuthInsertChannelParams struct + Channelname string + Password string + type Channel struct + Channelname string + Created string + Password string + type ChannelDeleteChannelRow struct + Channelname string + Created string + type ChannelSelectChannelRow struct + Channelname string + Created string + type ChannelSelectChannelsRow struct + Channelname string + Created string + 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 Queries struct + func New(db DBTX) *Queries + func (q *Queries) AuthInsertChannel(ctx context.Context, arg AuthInsertChannelParams) (Channel, error) + func (q *Queries) AuthSelectChannel(ctx context.Context, channelname string) (Channel, error) + func (q *Queries) ChannelDeleteChannel(ctx context.Context, channelname string) (ChannelDeleteChannelRow, error) + func (q *Queries) ChannelSelectChannel(ctx context.Context, channelname string) (ChannelSelectChannelRow, error) + func (q *Queries) ChannelSelectChannels(ctx context.Context) ([]ChannelSelectChannelsRow, error) + func (q *Queries) VideoDeleteVideo(ctx context.Context, slug string) (Video, error) + func (q *Queries) VideoInsertVideo(ctx context.Context, arg VideoInsertVideoParams) (Video, error) + func (q *Queries) VideoSelectVideo(ctx context.Context, slug string) (Video, error) + func (q *Queries) VideoSelectVideos(ctx context.Context) ([]Video, error) + func (q *Queries) VideoSelectVideosByChannel(ctx context.Context, uploader string) ([]Video, error) + func (q *Queries) VideoUpdateVideo(ctx context.Context, arg VideoUpdateVideoParams) (Video, error) + func (q *Queries) WithTx(tx *sql.Tx) *Queries + type Video struct + Description string + Processed int64 + Slug string + Title string + Uploaded string + Uploader string + type VideoInsertVideoParams struct + Description string + Slug string + Title string + Uploader string + type VideoUpdateVideoParams struct + Description string + Processed int64 + Slug string + Title string