sqlc

package
v0.0.0-...-afd6d5e Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BacklogItem

type BacklogItem struct {
	ID         uuid.UUID
	Type       BacklogType
	Summary    string
	StoryPoint sql.NullInt32
}

type BacklogType

type BacklogType string
const (
	BacklogTypeSTORY BacklogType = "STORY"
	BacklogTypeBUG   BacklogType = "BUG"
)

func (*BacklogType) Scan

func (e *BacklogType) Scan(src interface{}) error

type CreateBacklogItemParams

type CreateBacklogItemParams struct {
	ID         uuid.UUID
	Type       BacklogType
	Summary    string
	StoryPoint sql.NullInt32
}

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 GetBacklogItemsRow

type GetBacklogItemsRow struct {
	ID            uuid.UUID
	Type          BacklogType
	Summary       string
	StoryPoint    sql.NullInt32
	ID_2          uuid.NullUUID
	Summary_2     sql.NullString
	StoryPoint_2  sql.NullInt32
	BacklogItemID uuid.NullUUID
}

type NullBacklogType

type NullBacklogType struct {
	BacklogType BacklogType
	Valid       bool // Valid is true if String is not NULL
}

func (*NullBacklogType) Scan

func (ns *NullBacklogType) Scan(value interface{}) error

Scan implements the Scanner interface.

func (NullBacklogType) Value

func (ns NullBacklogType) Value() (driver.Value, error)

Value implements the driver Valuer interface.

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) CreateBacklogItem

func (q *Queries) CreateBacklogItem(ctx context.Context, arg CreateBacklogItemParams) error

func (*Queries) GetBacklogItems

func (q *Queries) GetBacklogItems(ctx context.Context) ([]GetBacklogItemsRow, error)

func (*Queries) GetOneBacklogItem

func (q *Queries) GetOneBacklogItem(ctx context.Context, id uuid.UUID) (BacklogItem, error)

func (*Queries) WithTx

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

type SubTask

type SubTask struct {
	ID            uuid.UUID
	Summary       string
	StoryPoint    sql.NullInt32
	BacklogItemID uuid.UUID
}

Jump to

Keyboard shortcuts

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