sqlite

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCommentParams

type AddCommentParams struct {
	Body   string
	Branch string
	ID     string
	Line   int64
	Path   string
	Side   string
	Slug   string
}

type Comment

type Comment struct {
	Body         string
	Branch       string
	CreatedAt    time.Time
	ID           string
	Line         int64
	Path         string
	Resolved     int64
	ResolvedBody string
	Side         string
	Slug         string
	UpdatedAt    time.Time
}

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 DeleteCommentParams

type DeleteCommentParams struct {
	ID   string
	Slug string
}

type GetCommentParams

type GetCommentParams struct {
	ID   string
	Slug string
}

type ListCommentsParams

type ListCommentsParams struct {
	Slug   string
	Branch string
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) AddComment

func (q *Queries) AddComment(ctx context.Context, arg AddCommentParams) (Comment, error)

func (*Queries) DeleteComment

func (q *Queries) DeleteComment(ctx context.Context, arg DeleteCommentParams) (int64, error)

func (*Queries) GetComment

func (q *Queries) GetComment(ctx context.Context, arg GetCommentParams) (Comment, error)

func (*Queries) ListComments

func (q *Queries) ListComments(ctx context.Context, arg ListCommentsParams) ([]Comment, error)

func (*Queries) SetCommentResolved

func (q *Queries) SetCommentResolved(ctx context.Context, arg SetCommentResolvedParams) (int64, error)

func (*Queries) UpdateCommentBody

func (q *Queries) UpdateCommentBody(ctx context.Context, arg UpdateCommentBodyParams) (int64, error)

func (*Queries) WithTx

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

type SetCommentResolvedParams

type SetCommentResolvedParams struct {
	Resolved     int64
	ResolvedBody string
	ID           string
	Slug         string
}

type UpdateCommentBodyParams

type UpdateCommentBodyParams struct {
	Body string
	ID   string
	Slug string
}

Jump to

Keyboard shortcuts

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