repositorysql

package
v0.0.0-...-883aa5b Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddToTeamParams

type AddToTeamParams struct {
	TeamSlug         slug.Slug
	GithubRepository string
}

type CountForTeamParams

type CountForTeamParams struct {
	TeamSlug slug.Slug
	Search   *string
}

type DBTX

type DBTX interface {
	Exec(context.Context, string, ...interface{}) (pgconn.CommandTag, error)
	Query(context.Context, string, ...interface{}) (pgx.Rows, error)
	QueryRow(context.Context, string, ...interface{}) pgx.Row
}

type ListForTeamParams

type ListForTeamParams struct {
	TeamSlug slug.Slug
	Search   *string
	OrderBy  string
	Offset   int32
	Limit    int32
}

type Querier

type Querier interface {
	AddToTeam(ctx context.Context, arg AddToTeamParams) (*TeamRepository, error)
	CountForTeam(ctx context.Context, arg CountForTeamParams) (int64, error)
	ListForTeam(ctx context.Context, arg ListForTeamParams) ([]*TeamRepository, error)
	RemoveFromTeam(ctx context.Context, arg RemoveFromTeamParams) error
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) AddToTeam

func (q *Queries) AddToTeam(ctx context.Context, arg AddToTeamParams) (*TeamRepository, error)

func (*Queries) CountForTeam

func (q *Queries) CountForTeam(ctx context.Context, arg CountForTeamParams) (int64, error)

func (*Queries) ListForTeam

func (q *Queries) ListForTeam(ctx context.Context, arg ListForTeamParams) ([]*TeamRepository, error)

func (*Queries) RemoveFromTeam

func (q *Queries) RemoveFromTeam(ctx context.Context, arg RemoveFromTeamParams) error

func (*Queries) WithTx

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

type RemoveFromTeamParams

type RemoveFromTeamParams struct {
	TeamSlug         slug.Slug
	GithubRepository string
}

type TeamRepository

type TeamRepository struct {
	TeamSlug         slug.Slug
	GithubRepository string
}

Jump to

Keyboard shortcuts

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