sqlc

package
v0.0.0-...-ae18e74 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthInsertChannelParams

type AuthInsertChannelParams struct {
	Channelname string `json:"channelname"`
	Password    string `json:"password"`
}

type Channel

type Channel struct {
	Channelname string `json:"channelname"`
	Created     string `json:"created"`
	Password    string `json:"password"`
}

type ChannelDeleteChannelRow

type ChannelDeleteChannelRow struct {
	Channelname string `json:"channelname"`
	Created     string `json:"created"`
}

type ChannelSelectChannelRow

type ChannelSelectChannelRow struct {
	Channelname string `json:"channelname"`
	Created     string `json:"created"`
}

type ChannelSelectChannelsRow

type ChannelSelectChannelsRow struct {
	Channelname string `json:"channelname"`
	Created     string `json:"created"`
}

type DBTX

type DBTX interface {
	ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
	PrepareContext(context.Context, string) (*sql.Stmt, error)
	QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
	QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type Queries

type Queries struct {
	// contains filtered or unexported fields
}

func New

func New(db DBTX) *Queries

func (*Queries) AuthInsertChannel

func (q *Queries) AuthInsertChannel(ctx context.Context, arg AuthInsertChannelParams) (Channel, error)

func (*Queries) AuthSelectChannel

func (q *Queries) AuthSelectChannel(ctx context.Context, channelname string) (Channel, error)

func (*Queries) ChannelDeleteChannel

func (q *Queries) ChannelDeleteChannel(ctx context.Context, channelname string) (ChannelDeleteChannelRow, error)

func (*Queries) ChannelSelectChannel

func (q *Queries) ChannelSelectChannel(ctx context.Context, channelname string) (ChannelSelectChannelRow, error)

func (*Queries) ChannelSelectChannels

func (q *Queries) ChannelSelectChannels(ctx context.Context) ([]ChannelSelectChannelsRow, error)

func (*Queries) VideoDeleteVideo

func (q *Queries) VideoDeleteVideo(ctx context.Context, slug string) (Video, error)

func (*Queries) VideoInsertVideo

func (q *Queries) VideoInsertVideo(ctx context.Context, arg VideoInsertVideoParams) (Video, error)

func (*Queries) VideoSelectVideo

func (q *Queries) VideoSelectVideo(ctx context.Context, slug string) (Video, error)

func (*Queries) VideoSelectVideos

func (q *Queries) VideoSelectVideos(ctx context.Context) ([]Video, error)

func (*Queries) VideoSelectVideosByChannel

func (q *Queries) VideoSelectVideosByChannel(ctx context.Context, uploader string) ([]Video, error)

func (*Queries) VideoUpdateVideo

func (q *Queries) VideoUpdateVideo(ctx context.Context, arg VideoUpdateVideoParams) (Video, error)

func (*Queries) WithTx

func (q *Queries) WithTx(tx *sql.Tx) *Queries

type Video

type Video struct {
	Slug        string `json:"slug"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Uploader    string `json:"uploader"`
	Uploaded    string `json:"uploaded"`
	Processed   int64  `json:"processed"`
}

type VideoInsertVideoParams

type VideoInsertVideoParams struct {
	Slug        string `json:"slug"`
	Title       string `json:"title"`
	Description string `json:"description"`
	Uploader    string `json:"uploader"`
}

type VideoUpdateVideoParams

type VideoUpdateVideoParams struct {
	Title       string `json:"title"`
	Description string `json:"description"`
	Processed   int64  `json:"processed"`
	Slug        string `json:"slug"`
}

Jump to

Keyboard shortcuts

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