sqlc

package
v0.0.0-...-c955e10 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 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 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) GetTask

func (q *Queries) GetTask(ctx context.Context, id string) (Task, error)

func (*Queries) GetUser

func (q *Queries) GetUser(ctx context.Context, id string) (User, error)

func (*Queries) ListSubTasks

func (q *Queries) ListSubTasks(ctx context.Context, id string) ([]SubTask, error)

func (*Queries) ListTasks

func (q *Queries) ListTasks(ctx context.Context, id string) ([]Task, error)

func (*Queries) ListUsers

func (q *Queries) ListUsers(ctx context.Context) ([]User, error)

func (*Queries) SubTask

func (q *Queries) SubTask(ctx context.Context, id string) (SubTask, error)

func (*Queries) WithTx

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

type SubTask

type SubTask struct {
	ID           string
	TaskID       string
	UserID       string
	Title        string
	Description  string
	RegisteredAt time.Time
	CreatedAt    time.Time
	UpdatedAt    time.Time
}

type Task

type Task struct {
	ID           string
	UserID       string
	Title        string
	Description  string
	StoryPoint   sql.NullInt64
	RegisteredAt time.Time
	CreatedAt    time.Time
	UpdatedAt    time.Time
}

type User

type User struct {
	ID        string
	Name      string
	CreatedAt time.Time
	UpdatedAt time.Time
}

Jump to

Keyboard shortcuts

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