sqlc

package
v0.0.0-...-8d27ea7 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Announcement

type Announcement struct {
	ID       int32
	Content  string
	SendTime pgtype.Timestamptz
	Send     bool
	Error    pgtype.Text
	YearID   int32
	AuthorID int32
}

type AnnouncementCreateParams

type AnnouncementCreateParams struct {
	YearID   int32
	AuthorID int32
	Content  string
	SendTime pgtype.Timestamptz
	Send     bool
	Error    pgtype.Text
}

type AnnouncementEvent

type AnnouncementEvent struct {
	ID             int32
	EventID        int32
	AnnouncementID int32
}

type AnnouncementEventCreateBatchParams

type AnnouncementEventCreateBatchParams struct {
	Column1 []int32
	Column2 []int32
}

type AnnouncementGetAllRow

type AnnouncementGetAllRow struct {
	ID             int32
	Content        string
	SendTime       pgtype.Timestamptz
	Send           bool
	Error          pgtype.Text
	YearID         int32
	AuthorID       int32
	ID_2           pgtype.Int4
	EventID        pgtype.Int4
	AnnouncementID pgtype.Int4
}

type AnnouncementGetByEventsRow

type AnnouncementGetByEventsRow struct {
	ID             int32
	Content        string
	SendTime       pgtype.Timestamptz
	Send           bool
	Error          pgtype.Text
	YearID         int32
	AuthorID       int32
	ID_2           pgtype.Int4
	EventID        pgtype.Int4
	AnnouncementID pgtype.Int4
}

type AnnouncementGetByIDRow

type AnnouncementGetByIDRow struct {
	ID             int32
	Content        string
	SendTime       pgtype.Timestamptz
	Send           bool
	Error          pgtype.Text
	YearID         int32
	AuthorID       int32
	ID_2           pgtype.Int4
	EventID        pgtype.Int4
	AnnouncementID pgtype.Int4
}

type AnnouncementGetUnsendRow

type AnnouncementGetUnsendRow struct {
	ID             int32
	Content        string
	SendTime       pgtype.Timestamptz
	Send           bool
	Error          pgtype.Text
	YearID         int32
	AuthorID       int32
	ID_2           pgtype.Int4
	EventID        pgtype.Int4
	AnnouncementID pgtype.Int4
}

type AnnouncementUpdateParams

type AnnouncementUpdateParams struct {
	Content  string
	SendTime pgtype.Timestamptz
	Error    pgtype.Text
	ID       int32
}

type AnnouncmentGetByYearRow

type AnnouncmentGetByYearRow struct {
	ID             int32
	Content        string
	SendTime       pgtype.Timestamptz
	Send           bool
	Error          pgtype.Text
	YearID         int32
	AuthorID       int32
	ID_2           pgtype.Int4
	EventID        pgtype.Int4
	AnnouncementID pgtype.Int4
}

type Board

type Board struct {
	ID          int32
	MemberID    int32
	YearID      int32
	Role        string
	IsOrganizer bool
}

type BoardCreateParams

type BoardCreateParams struct {
	Role        string
	MemberID    int32
	YearID      int32
	IsOrganizer bool
}

type BoardGetAllRow

type BoardGetAllRow struct {
	Board  Board
	Member Member
	Year   Year
}

type BoardGetByIdsRow

type BoardGetByIdsRow struct {
	Board  Board
	Member Member
	Year   Year
}

type BoardGetByMemberRow

type BoardGetByMemberRow struct {
	Board  Board
	Member Member
	Year   Year
}

type BoardGetByMemberYearParams

type BoardGetByMemberYearParams struct {
	ID   int32
	ID_2 int32
}

type BoardGetByMemberYearRow

type BoardGetByMemberYearRow struct {
	Board  Board
	Member Member
	Year   Year
}

type BoardGetByYearRow

type BoardGetByYearRow struct {
	Board  Board
	Member Member
	Year   Year
}

type BoardUpdateParams

type BoardUpdateParams struct {
	ID          int32
	Role        string
	MemberID    int32
	YearID      int32
	IsOrganizer bool
}

type Check

type Check struct {
	Uid         string
	Description string
	Deadline    pgtype.Int8
	Active      bool
	Type        CheckType
	CreatorID   pgtype.Int4
}

type CheckCreateParams

type CheckCreateParams struct {
	Uid         string
	Description string
	Deadline    pgtype.Int8
	Active      bool
	Type        CheckType
	CreatorID   pgtype.Int4
}

type CheckEvent

type CheckEvent struct {
	ID         int32
	CheckUid   string
	EventID    int32
	Status     CheckStatus
	Message    pgtype.Text
	UpdatedAt  pgtype.Timestamptz
	Mattermost bool
}

type CheckEventCreateBatchParams

type CheckEventCreateBatchParams struct {
	Column1 []string
	Column2 []int32
	Column3 []string
	Column4 []string
}

type CheckEventCreateParams

type CheckEventCreateParams struct {
	CheckUid string
	EventID  int32
	Status   CheckStatus
	Message  pgtype.Text
}

type CheckEventUpdateParams

type CheckEventUpdateParams struct {
	ID      int32
	Status  CheckStatus
	Message pgtype.Text
}

type CheckGetByCheckEventIDRow

type CheckGetByCheckEventIDRow struct {
	CheckEvent CheckEvent
	Check      Check
}

type CheckGetByCheckEventParams

type CheckGetByCheckEventParams struct {
	Uid     string
	EventID int32
}

type CheckGetByCheckEventRow

type CheckGetByCheckEventRow struct {
	CheckEvent CheckEvent
	Check      Check
}

type CheckGetByCheckUIDAllRow

type CheckGetByCheckUIDAllRow struct {
	CheckEvent CheckEvent
	Check      Check
}

type CheckGetByEventsRow

type CheckGetByEventsRow struct {
	CheckEvent CheckEvent
	Check      Check
}

type CheckStatus

type CheckStatus string
const (
	CheckStatusDone     CheckStatus = "done"
	CheckStatusDoneLate CheckStatus = "done_late"
	CheckStatusTodo     CheckStatus = "todo"
	CheckStatusTodoLate CheckStatus = "todo_late"
	CheckStatusWarning  CheckStatus = "warning"
)

func (*CheckStatus) Scan

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

type CheckType

type CheckType string
const (
	CheckTypeManual    CheckType = "manual"
	CheckTypeAutomatic CheckType = "automatic"
)

func (*CheckType) Scan

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

type CheckUpdateParams

type CheckUpdateParams struct {
	Uid         string
	Description string
	Deadline    pgtype.Int8
	Active      bool
	Type        CheckType
}

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 Dsa

type Dsa struct {
	ID      int32
	EventID int32
	DsaID   pgtype.Int4
	Deleted bool
}

type DsaCreateParams

type DsaCreateParams struct {
	EventID int32
	DsaID   pgtype.Int4
}

type DsaUpdateParams

type DsaUpdateParams struct {
	ID      int32
	EventID int32
	DsaID   pgtype.Int4
	Deleted bool
}

type Event

type Event struct {
	ID          int32
	FileName    string
	Name        string
	Description pgtype.Text
	StartTime   pgtype.Timestamptz
	EndTime     pgtype.Timestamptz
	Location    pgtype.Text
	YearID      int32
	Deleted     bool
}

type EventCreateParams

type EventCreateParams struct {
	FileName    string
	Name        string
	Description pgtype.Text
	StartTime   pgtype.Timestamptz
	EndTime     pgtype.Timestamptz
	YearID      int32
	Location    pgtype.Text
	Deleted     bool
}

type EventGetAllRow

type EventGetAllRow struct {
	Event Event
	Year  Year
}

type EventGetByIdsRow

type EventGetByIdsRow struct {
	Event Event
	Year  Year
}

type EventGetByYearRow

type EventGetByYearRow struct {
	Event Event
	Year  Year
}

type EventGetFutureRow

type EventGetFutureRow struct {
	Event Event
	Year  Year
}

type EventGetNextRow

type EventGetNextRow struct {
	Event Event
	Year  Year
}

type EventGetRow

type EventGetRow struct {
	Event Event
	Year  Year
}

type EventUpdateParams

type EventUpdateParams struct {
	ID          int32
	Name        string
	Description pgtype.Text
	StartTime   pgtype.Timestamptz
	EndTime     pgtype.Timestamptz
	YearID      int32
	Location    pgtype.Text
	Deleted     bool
}

type Image

type Image struct {
	ID     int32
	Name   string
	FileID string
}

type ImageCreateParams

type ImageCreateParams struct {
	Name   string
	FileID string
}

type Mail

type Mail struct {
	ID       int32
	Content  string
	SendTime pgtype.Timestamptz
	Send     bool
	Error    pgtype.Text
	Title    string
	YearID   int32
	AuthorID int32
}

type MailCreateParams

type MailCreateParams struct {
	YearID   int32
	AuthorID int32
	Title    string
	Content  string
	SendTime pgtype.Timestamptz
	Send     bool
	Error    pgtype.Text
}

type MailEvent

type MailEvent struct {
	ID      int32
	MailID  int32
	EventID int32
}

type MailEventCreateBatchParams

type MailEventCreateBatchParams struct {
	Column1 []int32
	Column2 []int32
}

type MailGetAllRow

type MailGetAllRow struct {
	ID       int32
	Content  string
	SendTime pgtype.Timestamptz
	Send     bool
	Error    pgtype.Text
	Title    string
	YearID   int32
	AuthorID int32
	ID_2     pgtype.Int4
	MailID   pgtype.Int4
	EventID  pgtype.Int4
}

type MailGetByEventsRow

type MailGetByEventsRow struct {
	ID       int32
	Content  string
	SendTime pgtype.Timestamptz
	Send     bool
	Error    pgtype.Text
	Title    string
	YearID   int32
	AuthorID int32
	ID_2     pgtype.Int4
	MailID   pgtype.Int4
	EventID  pgtype.Int4
}

type MailGetByIDRow

type MailGetByIDRow struct {
	ID       int32
	Content  string
	SendTime pgtype.Timestamptz
	Send     bool
	Error    pgtype.Text
	Title    string
	YearID   int32
	AuthorID int32
	ID_2     pgtype.Int4
	MailID   pgtype.Int4
	EventID  pgtype.Int4
}

type MailGetByYearRow

type MailGetByYearRow struct {
	ID       int32
	Content  string
	SendTime pgtype.Timestamptz
	Send     bool
	Error    pgtype.Text
	Title    string
	YearID   int32
	AuthorID int32
	ID_2     pgtype.Int4
	MailID   pgtype.Int4
	EventID  pgtype.Int4
}

type MailGetUnsendRow

type MailGetUnsendRow struct {
	ID       int32
	Content  string
	SendTime pgtype.Timestamptz
	Send     bool
	Error    pgtype.Text
	Title    string
	YearID   int32
	AuthorID int32
	ID_2     pgtype.Int4
	MailID   pgtype.Int4
	EventID  pgtype.Int4
}

type MailUpdateParams

type MailUpdateParams struct {
	Title    string
	Content  string
	SendTime pgtype.Timestamptz
	Error    pgtype.Text
	ID       int32
}

type Member

type Member struct {
	ID         int32
	Name       string
	Username   pgtype.Text
	ZauthID    pgtype.Int4
	Mattermost pgtype.Text
}

type MemberCreateParams

type MemberCreateParams struct {
	Name       string
	Username   pgtype.Text
	Mattermost pgtype.Text
	ZauthID    pgtype.Int4
}

type MemberUpdateParams

type MemberUpdateParams struct {
	ID         int32
	Name       string
	Username   pgtype.Text
	Mattermost pgtype.Text
	ZauthID    pgtype.Int4
}

type NullCheckStatus

type NullCheckStatus struct {
	CheckStatus CheckStatus
	Valid       bool // Valid is true if CheckStatus is not NULL
}

func (*NullCheckStatus) Scan

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

Scan implements the Scanner interface.

func (NullCheckStatus) Value

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

Value implements the driver Valuer interface.

type NullCheckType

type NullCheckType struct {
	CheckType CheckType
	Valid     bool // Valid is true if CheckType is not NULL
}

func (*NullCheckType) Scan

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

Scan implements the Scanner interface.

func (NullCheckType) Value

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

Value implements the driver Valuer interface.

type NullTaskResult

type NullTaskResult struct {
	TaskResult TaskResult
	Valid      bool // Valid is true if TaskResult is not NULL
}

func (*NullTaskResult) Scan

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

Scan implements the Scanner interface.

func (NullTaskResult) Value

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

Value implements the driver Valuer interface.

type NullTaskType

type NullTaskType struct {
	TaskType TaskType
	Valid    bool // Valid is true if TaskType is not NULL
}

func (*NullTaskType) Scan

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

Scan implements the Scanner interface.

func (NullTaskType) Value

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

Value implements the driver Valuer interface.

type Organizer

type Organizer struct {
	ID      int32
	EventID int32
	BoardID int32
}

type OrganizerCreateBatchParams

type OrganizerCreateBatchParams struct {
	Column1 []int32
	Column2 []int32
}

type OrganizerGetByEventsRow

type OrganizerGetByEventsRow struct {
	Organizer Organizer
	Board     Board
	Event     Event
	Member    Member
	Year      Year
}

type Poster

type Poster struct {
	ID      int32
	EventID int32
	FileID  string
	Scc     bool
	WebpID  string
}

type PosterCreateParams

type PosterCreateParams struct {
	EventID int32
	FileID  string
	WebpID  string
	Scc     bool
}

type PosterUpdateParams

type PosterUpdateParams struct {
	EventID int32
	FileID  string
	WebpID  string
	Scc     bool
	ID      int32
}

type Queries

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

func New

func New(db DBTX) *Queries

func (*Queries) AnnouncementCreate

func (q *Queries) AnnouncementCreate(ctx context.Context, arg AnnouncementCreateParams) (int32, error)

func (*Queries) AnnouncementDelete

func (q *Queries) AnnouncementDelete(ctx context.Context, id int32) error

func (*Queries) AnnouncementEventCreateBatch

func (q *Queries) AnnouncementEventCreateBatch(ctx context.Context, arg AnnouncementEventCreateBatchParams) error

func (*Queries) AnnouncementEventDeleteByAnnouncement

func (q *Queries) AnnouncementEventDeleteByAnnouncement(ctx context.Context, announcementID int32) error

func (*Queries) AnnouncementGetAll

func (q *Queries) AnnouncementGetAll(ctx context.Context) ([]AnnouncementGetAllRow, error)

func (*Queries) AnnouncementGetByEvents

func (q *Queries) AnnouncementGetByEvents(ctx context.Context, dollar_1 []int32) ([]AnnouncementGetByEventsRow, error)

func (*Queries) AnnouncementGetByID

func (q *Queries) AnnouncementGetByID(ctx context.Context, id int32) ([]AnnouncementGetByIDRow, error)

func (*Queries) AnnouncementGetUnsend

func (q *Queries) AnnouncementGetUnsend(ctx context.Context) ([]AnnouncementGetUnsendRow, error)

func (*Queries) AnnouncementSend

func (q *Queries) AnnouncementSend(ctx context.Context, id int32) error

func (*Queries) AnnouncementUpdate

func (q *Queries) AnnouncementUpdate(ctx context.Context, arg AnnouncementUpdateParams) error

func (*Queries) AnnouncmentGetByYear

func (q *Queries) AnnouncmentGetByYear(ctx context.Context, yearID int32) ([]AnnouncmentGetByYearRow, error)

func (*Queries) BoardCreate

func (q *Queries) BoardCreate(ctx context.Context, arg BoardCreateParams) (int32, error)

func (*Queries) BoardDelete

func (q *Queries) BoardDelete(ctx context.Context, id int32) error

func (*Queries) BoardGetAll

func (q *Queries) BoardGetAll(ctx context.Context) ([]BoardGetAllRow, error)

func (*Queries) BoardGetByIds

func (q *Queries) BoardGetByIds(ctx context.Context, dollar_1 []int32) ([]BoardGetByIdsRow, error)

func (*Queries) BoardGetByMember

func (q *Queries) BoardGetByMember(ctx context.Context, id int32) ([]BoardGetByMemberRow, error)

func (*Queries) BoardGetByMemberYear

func (q *Queries) BoardGetByMemberYear(ctx context.Context, arg BoardGetByMemberYearParams) (BoardGetByMemberYearRow, error)

func (*Queries) BoardGetByYear

func (q *Queries) BoardGetByYear(ctx context.Context, yearID int32) ([]BoardGetByYearRow, error)

func (*Queries) BoardUpdate

func (q *Queries) BoardUpdate(ctx context.Context, arg BoardUpdateParams) error

func (*Queries) CheckCreate

func (q *Queries) CheckCreate(ctx context.Context, arg CheckCreateParams) error

func (*Queries) CheckDelete

func (q *Queries) CheckDelete(ctx context.Context, uid string) error

func (*Queries) CheckEventCreate

func (q *Queries) CheckEventCreate(ctx context.Context, arg CheckEventCreateParams) (int32, error)

func (*Queries) CheckEventCreateBatch

func (q *Queries) CheckEventCreateBatch(ctx context.Context, arg CheckEventCreateBatchParams) error

func (*Queries) CheckEventMattermost

func (q *Queries) CheckEventMattermost(ctx context.Context, id int32) error

func (*Queries) CheckEventUpdate

func (q *Queries) CheckEventUpdate(ctx context.Context, arg CheckEventUpdateParams) error

func (*Queries) CheckGetByCheckEvent

func (q *Queries) CheckGetByCheckEvent(ctx context.Context, arg CheckGetByCheckEventParams) (CheckGetByCheckEventRow, error)

func (*Queries) CheckGetByCheckEventID

func (q *Queries) CheckGetByCheckEventID(ctx context.Context, id int32) (CheckGetByCheckEventIDRow, error)

func (*Queries) CheckGetByCheckUID

func (q *Queries) CheckGetByCheckUID(ctx context.Context, uid string) (Check, error)

func (*Queries) CheckGetByCheckUIDAll

func (q *Queries) CheckGetByCheckUIDAll(ctx context.Context, uid string) ([]CheckGetByCheckUIDAllRow, error)

func (*Queries) CheckGetByEvents

func (q *Queries) CheckGetByEvents(ctx context.Context, dollar_1 []int32) ([]CheckGetByEventsRow, error)

func (*Queries) CheckSetInactiveAutomatic

func (q *Queries) CheckSetInactiveAutomatic(ctx context.Context) error

func (*Queries) CheckUpdate

func (q *Queries) CheckUpdate(ctx context.Context, arg CheckUpdateParams) error

func (*Queries) DsaCreate

func (q *Queries) DsaCreate(ctx context.Context, arg DsaCreateParams) (int32, error)

func (*Queries) DsaDelete

func (q *Queries) DsaDelete(ctx context.Context, id int32) error

func (*Queries) DsaGetByEvent

func (q *Queries) DsaGetByEvent(ctx context.Context, eventID int32) (Dsa, error)

func (*Queries) DsaGetByEvents

func (q *Queries) DsaGetByEvents(ctx context.Context, dollar_1 []int32) ([]Dsa, error)

func (*Queries) DsaUpdate

func (q *Queries) DsaUpdate(ctx context.Context, arg DsaUpdateParams) error

func (*Queries) EventCreate

func (q *Queries) EventCreate(ctx context.Context, arg EventCreateParams) (int32, error)

func (*Queries) EventDelete

func (q *Queries) EventDelete(ctx context.Context, id int32) error

func (*Queries) EventGet

func (q *Queries) EventGet(ctx context.Context, id int32) (EventGetRow, error)

func (*Queries) EventGetAll

func (q *Queries) EventGetAll(ctx context.Context) ([]EventGetAllRow, error)

func (*Queries) EventGetByIds

func (q *Queries) EventGetByIds(ctx context.Context, dollar_1 []int32) ([]EventGetByIdsRow, error)

func (*Queries) EventGetByYear

func (q *Queries) EventGetByYear(ctx context.Context, yearID int32) ([]EventGetByYearRow, error)

func (*Queries) EventGetFuture

func (q *Queries) EventGetFuture(ctx context.Context) ([]EventGetFutureRow, error)

func (*Queries) EventGetNext

func (q *Queries) EventGetNext(ctx context.Context) (EventGetNextRow, error)

func (*Queries) EventUpdate

func (q *Queries) EventUpdate(ctx context.Context, arg EventUpdateParams) error

func (*Queries) ImageCreate

func (q *Queries) ImageCreate(ctx context.Context, arg ImageCreateParams) (int32, error)

func (*Queries) ImageGet

func (q *Queries) ImageGet(ctx context.Context, id int32) (Image, error)

func (*Queries) MailCreate

func (q *Queries) MailCreate(ctx context.Context, arg MailCreateParams) (int32, error)

func (*Queries) MailDelete

func (q *Queries) MailDelete(ctx context.Context, id int32) error

func (*Queries) MailEventCreateBatch

func (q *Queries) MailEventCreateBatch(ctx context.Context, arg MailEventCreateBatchParams) error

func (*Queries) MailEventDeleteByMail

func (q *Queries) MailEventDeleteByMail(ctx context.Context, mailID int32) error

func (*Queries) MailGetAll

func (q *Queries) MailGetAll(ctx context.Context) ([]MailGetAllRow, error)

func (*Queries) MailGetByEvents

func (q *Queries) MailGetByEvents(ctx context.Context, dollar_1 []int32) ([]MailGetByEventsRow, error)

func (*Queries) MailGetByID

func (q *Queries) MailGetByID(ctx context.Context, id int32) ([]MailGetByIDRow, error)

func (*Queries) MailGetByYear

func (q *Queries) MailGetByYear(ctx context.Context, yearID int32) ([]MailGetByYearRow, error)

func (*Queries) MailGetUnsend

func (q *Queries) MailGetUnsend(ctx context.Context) ([]MailGetUnsendRow, error)

func (*Queries) MailSend

func (q *Queries) MailSend(ctx context.Context, id int32) error

func (*Queries) MailUpdate

func (q *Queries) MailUpdate(ctx context.Context, arg MailUpdateParams) error

func (*Queries) MemberCreate

func (q *Queries) MemberCreate(ctx context.Context, arg MemberCreateParams) (int32, error)

func (*Queries) MemberDelete

func (q *Queries) MemberDelete(ctx context.Context, id int32) error

func (*Queries) MemberGetAll

func (q *Queries) MemberGetAll(ctx context.Context) ([]Member, error)

func (*Queries) MemberGetByID

func (q *Queries) MemberGetByID(ctx context.Context, id int32) (Member, error)

func (*Queries) MemberGetByName

func (q *Queries) MemberGetByName(ctx context.Context, name string) (Member, error)

func (*Queries) MemberUpdate

func (q *Queries) MemberUpdate(ctx context.Context, arg MemberUpdateParams) error

func (*Queries) OrganizerCreateBatch

func (q *Queries) OrganizerCreateBatch(ctx context.Context, arg OrganizerCreateBatchParams) error

func (*Queries) OrganizerDeleteByEvent

func (q *Queries) OrganizerDeleteByEvent(ctx context.Context, eventID int32) error

func (*Queries) OrganizerGetByEvents

func (q *Queries) OrganizerGetByEvents(ctx context.Context, dollar_1 []int32) ([]OrganizerGetByEventsRow, error)

func (*Queries) PosterCreate

func (q *Queries) PosterCreate(ctx context.Context, arg PosterCreateParams) (int32, error)

func (*Queries) PosterDelete

func (q *Queries) PosterDelete(ctx context.Context, id int32) error

func (*Queries) PosterGet

func (q *Queries) PosterGet(ctx context.Context, id int32) (Poster, error)

func (*Queries) PosterGetAll

func (q *Queries) PosterGetAll(ctx context.Context) ([]Poster, error)

func (*Queries) PosterGetByEvents

func (q *Queries) PosterGetByEvents(ctx context.Context, dollar_1 []int32) ([]Poster, error)

func (*Queries) PosterUpdate

func (q *Queries) PosterUpdate(ctx context.Context, arg PosterUpdateParams) error

func (*Queries) TaskCreate

func (q *Queries) TaskCreate(ctx context.Context, arg TaskCreateParams) error

func (*Queries) TaskGetByUID

func (q *Queries) TaskGetByUID(ctx context.Context, uid string) (Task, error)

func (*Queries) TaskGetFiltered

func (q *Queries) TaskGetFiltered(ctx context.Context, arg TaskGetFilteredParams) ([]TaskGetFilteredRow, error)

func (*Queries) TaskRunCreate

func (q *Queries) TaskRunCreate(ctx context.Context, arg TaskRunCreateParams) (int32, error)

func (*Queries) TaskRunGet

func (q *Queries) TaskRunGet(ctx context.Context, id int32) (TaskRunGetRow, error)

func (*Queries) TaskRunResolve

func (q *Queries) TaskRunResolve(ctx context.Context, id int32) error

func (*Queries) TaskSetInactiveRecurring

func (q *Queries) TaskSetInactiveRecurring(ctx context.Context) error

func (*Queries) TaskUpdate

func (q *Queries) TaskUpdate(ctx context.Context, arg TaskUpdateParams) error

func (*Queries) WithTx

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

func (*Queries) YearCreate

func (q *Queries) YearCreate(ctx context.Context, arg YearCreateParams) (int32, error)

func (*Queries) YearGetAll

func (q *Queries) YearGetAll(ctx context.Context) ([]Year, error)

func (*Queries) YearGetLast

func (q *Queries) YearGetLast(ctx context.Context) (Year, error)

type Task

type Task struct {
	Uid    string
	Name   string
	Active bool
	Type   TaskType
}

type TaskCreateParams

type TaskCreateParams struct {
	Uid    string
	Name   string
	Active bool
	Type   TaskType
}

type TaskGetFilteredParams

type TaskGetFilteredParams struct {
	Uid           string
	Result        TaskResult
	Limit         int32
	Offset        int32
	FilterTaskUid interface{}
	FilterResult  interface{}
}

type TaskGetFilteredRow

type TaskGetFilteredRow struct {
	Task    Task
	TaskRun TaskRun
}

type TaskResult

type TaskResult string
const (
	TaskResultSuccess  TaskResult = "success"
	TaskResultFailed   TaskResult = "failed"
	TaskResultResolved TaskResult = "resolved"
)

func (*TaskResult) Scan

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

type TaskRun

type TaskRun struct {
	ID       int32
	TaskUid  string
	RunAt    pgtype.Timestamptz
	Result   TaskResult
	Error    pgtype.Text
	Duration int64
}

type TaskRunCreateParams

type TaskRunCreateParams struct {
	TaskUid  string
	RunAt    pgtype.Timestamptz
	Result   TaskResult
	Error    pgtype.Text
	Duration int64
}

type TaskRunGetRow

type TaskRunGetRow struct {
	Task    Task
	TaskRun TaskRun
}

type TaskType

type TaskType string
const (
	TaskTypeRecurring TaskType = "recurring"
	TaskTypeOnce      TaskType = "once"
)

func (*TaskType) Scan

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

type TaskUpdateParams

type TaskUpdateParams struct {
	Uid    string
	Name   string
	Active bool
}

type Year

type Year struct {
	ID        int32
	YearStart int32
	YearEnd   int32
}

type YearCreateParams

type YearCreateParams struct {
	YearStart int32
	YearEnd   int32
}

Jump to

Keyboard shortcuts

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