Documentation ¶
Index ¶
- type DBTX
- type Event
- type GetEventsParams
- type GetKpisParams
- type GetOkrByIDRow
- type GetOkrsParams
- type GetOkrsRow
- type InsertEventParams
- type InsertKeyResultParams
- type InsertKpiParams
- type InsertOkrParams
- type InsertOkrRow
- type Kpi
- type Okr
- type OkrKr
- type Querier
- type Queries
- func (q *Queries) DeleteEvent(ctx context.Context, eventID pgtype.UUID) error
- func (q *Queries) DeleteKpi(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) DeleteOkr(ctx context.Context, id pgtype.UUID) error
- func (q *Queries) GetEventByID(ctx context.Context, eventID pgtype.UUID) (Event, error)
- func (q *Queries) GetEvents(ctx context.Context, arg GetEventsParams) ([]Event, error)
- func (q *Queries) GetEventsCount(ctx context.Context, dollar_1 pgtype.Text) (int64, error)
- func (q *Queries) GetKpiByID(ctx context.Context, id pgtype.UUID) (Kpi, error)
- func (q *Queries) GetKpis(ctx context.Context, arg GetKpisParams) ([]Kpi, error)
- func (q *Queries) GetKpisCount(ctx context.Context, dollar_1 pgtype.Text) (int64, error)
- func (q *Queries) GetOkrByID(ctx context.Context, id pgtype.UUID) (GetOkrByIDRow, error)
- func (q *Queries) GetOkrs(ctx context.Context, arg GetOkrsParams) ([]GetOkrsRow, error)
- func (q *Queries) GetOkrsCount(ctx context.Context, dollar_1 pgtype.Text) (int64, error)
- func (q *Queries) InsertEvent(ctx context.Context, arg InsertEventParams) (Event, error)
- func (q *Queries) InsertKeyResult(ctx context.Context, arg InsertKeyResultParams) (OkrKr, error)
- func (q *Queries) InsertKpi(ctx context.Context, arg InsertKpiParams) (Kpi, error)
- func (q *Queries) InsertOkr(ctx context.Context, arg InsertOkrParams) (InsertOkrRow, error)
- func (q *Queries) WithTx(tx pgx.Tx) *Queries
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { EventID pgtype.UUID `json:"event_id"` EventPrivacy int32 `json:"event_privacy"` Name string `json:"name"` Description string `json:"description"` Type string `json:"type"` Department string `json:"department"` Regions []string `json:"regions"` Tags []string `json:"tags"` StartAt pgtype.Timestamp `json:"start_at"` }
type GetEventsParams ¶
type GetKpisParams ¶
type GetOkrByIDRow ¶
type GetOkrsParams ¶
type GetOkrsRow ¶
type InsertEventParams ¶
type InsertEventParams struct { EventPrivacy int32 `json:"event_privacy"` Name string `json:"name"` Description string `json:"description"` Type string `json:"type"` Department string `json:"department"` Regions []string `json:"regions"` Tags []string `json:"tags"` StartAt pgtype.Timestamp `json:"start_at"` }
type InsertKeyResultParams ¶
type InsertKpiParams ¶
type InsertOkrParams ¶
type InsertOkrRow ¶
type OkrKr ¶
type OkrKr struct { ID pgtype.UUID `json:"id"` OkrID pgtype.UUID `json:"okr_id"` Name string `json:"name"` Number int32 `json:"number"` Description string `json:"description"` Sponsor string `json:"sponsor"` Kpis string `json:"kpis"` Scope string `json:"scope"` Initiatives string `json:"initiatives"` }
type Querier ¶
type Querier interface { // Delete an event by ID DeleteEvent(ctx context.Context, eventID pgtype.UUID) error // Delete a kpi by ID DeleteKpi(ctx context.Context, id pgtype.UUID) error // Delete an okr by ID DeleteOkr(ctx context.Context, id pgtype.UUID) error // Get a single event by ID GetEventByID(ctx context.Context, eventID pgtype.UUID) (Event, error) // events.sql // Get events with pagination and optional search GetEvents(ctx context.Context, arg GetEventsParams) ([]Event, error) // Get total count for pagination GetEventsCount(ctx context.Context, dollar_1 pgtype.Text) (int64, error) // Get a single kpi by ID GetKpiByID(ctx context.Context, id pgtype.UUID) (Kpi, error) // kpis.sql // Get kpis GetKpis(ctx context.Context, arg GetKpisParams) ([]Kpi, error) // Get total count for pagination GetKpisCount(ctx context.Context, dollar_1 pgtype.Text) (int64, error) // Get a single okr by ID GetOkrByID(ctx context.Context, id pgtype.UUID) (GetOkrByIDRow, error) // okrs.sql // Get okrs with pagination and optional search GetOkrs(ctx context.Context, arg GetOkrsParams) ([]GetOkrsRow, error) // Get total count for pagination GetOkrsCount(ctx context.Context, dollar_1 pgtype.Text) (int64, error) // Insert a new event InsertEvent(ctx context.Context, arg InsertEventParams) (Event, error) // Insert a new key result InsertKeyResult(ctx context.Context, arg InsertKeyResultParams) (OkrKr, error) // Insert a new kpi InsertKpi(ctx context.Context, arg InsertKpiParams) (Kpi, error) // Insert a new okr InsertOkr(ctx context.Context, arg InsertOkrParams) (InsertOkrRow, error) }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) DeleteEvent ¶
Delete an event by ID
func (*Queries) GetEventByID ¶
Get a single event by ID
func (*Queries) GetEventsCount ¶
Get total count for pagination
func (*Queries) GetKpiByID ¶
Get a single kpi by ID
func (*Queries) GetKpisCount ¶
Get total count for pagination
func (*Queries) GetOkrByID ¶
Get a single okr by ID
func (*Queries) GetOkrs ¶
func (q *Queries) GetOkrs(ctx context.Context, arg GetOkrsParams) ([]GetOkrsRow, error)
okrs.sql Get okrs with pagination and optional search
func (*Queries) GetOkrsCount ¶
Get total count for pagination
func (*Queries) InsertEvent ¶
Insert a new event
func (*Queries) InsertKeyResult ¶
Insert a new key result
func (*Queries) InsertOkr ¶
func (q *Queries) InsertOkr(ctx context.Context, arg InsertOkrParams) (InsertOkrRow, error)
Insert a new okr
Click to show internal directories.
Click to hide internal directories.