Versions in this module Expand all Collapse all v1 v1.0.0 Mar 18, 2026 Changes in this version + 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 GetSubtitleRow struct + Author string + Comment string + ContentHash string + ContentKey string + Downloads int64 + Filename string + Format string + Hi int64 + ID string + ImdbID string + Language string + Releases string + Slug string + SubsceneID string + Title string + UploadedAt string + Year int64 + type InsertSubtitleParams struct + Author string + Comment string + ContentHash string + ContentKey string + Downloads int64 + Filename string + Format string + Hi int64 + ID string + ImdbID string + Language string + Releases string + Slug string + SubsceneID string + Title string + UploadedAt string + Year int64 + type ListLanguagesRow struct + Count int64 + Language string + type Queries struct + func New(db DBTX) *Queries + func (q *Queries) GetSubtitle(ctx context.Context, id string) (GetSubtitleRow, error) + func (q *Queries) IncrementDownloads(ctx context.Context, id string) error + func (q *Queries) InsertSubtitle(ctx context.Context, arg InsertSubtitleParams) (sql.Result, error) + func (q *Queries) ListLanguages(ctx context.Context) ([]ListLanguagesRow, error) + func (q *Queries) WithTx(tx *sql.Tx) *Queries + type Subtitle struct + Author string + Comment string + ContentHash string + ContentKey string + CreatedAt string + Downloads int64 + Filename string + Format string + Hi int64 + ID string + ImdbID string + Language string + Releases string + Slug string + SubsceneID string + Title string + UpdatedAt string + UploadedAt string + Year int64