stillbox/pkg/gordio/database/querier.go

42 lines
2 KiB
Go
Raw Normal View History

2024-07-28 19:51:23 -04:00
// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.26.0
package database
import (
"context"
"github.com/google/uuid"
"github.com/jackc/pgx/v5/pgtype"
)
type Querier interface {
AddCall(ctx context.Context, arg AddCallParams) (uuid.UUID, error)
2024-08-06 11:19:30 -04:00
BulkSetTalkgroupTags(ctx context.Context, iD int64, tags []string) error
2024-07-28 19:51:23 -04:00
CreateAPIKey(ctx context.Context, owner int, expires pgtype.Timestamp, disabled *bool) (ApiKey, error)
CreateUser(ctx context.Context, arg CreateUserParams) (User, error)
2024-08-03 00:05:02 -04:00
DeleteAPIKey(ctx context.Context, apiKey string) error
2024-07-28 19:51:23 -04:00
DeleteUser(ctx context.Context, username string) error
2024-08-03 00:05:02 -04:00
GetAPIKey(ctx context.Context, apiKey string) (ApiKey, error)
2024-10-20 13:04:42 -04:00
GetDatabaseSize(ctx context.Context) (string, error)
2024-10-31 00:10:53 -04:00
GetSystemName(ctx context.Context, systemID int) (string, error)
2024-08-16 14:54:50 -04:00
GetTalkgroup(ctx context.Context, systemID int, tgid int) (Talkgroup, error)
2024-08-06 11:19:30 -04:00
GetTalkgroupIDsByTags(ctx context.Context, anytags []string, alltags []string, nottags []string) ([]GetTalkgroupIDsByTagsRow, error)
GetTalkgroupTags(ctx context.Context, sys int, tg int) ([]string, error)
2024-08-16 16:47:39 -04:00
GetTalkgroupWithLearned(ctx context.Context, systemID int, tgid int) (GetTalkgroupWithLearnedRow, error)
2024-10-31 16:14:38 -04:00
GetTalkgroupWithLearnedByPackedIDs(ctx context.Context, dollar_1 []int64) ([]GetTalkgroupWithLearnedByPackedIDsRow, error)
GetTalkgroupsByPackedIDs(ctx context.Context, dollar_1 []int64) ([]GetTalkgroupsByPackedIDsRow, error)
2024-07-28 23:07:04 -04:00
GetTalkgroupsWithAllTags(ctx context.Context, tags []string) ([]Talkgroup, error)
GetTalkgroupsWithAnyTags(ctx context.Context, tags []string) ([]Talkgroup, error)
2024-07-28 19:51:23 -04:00
GetUserByID(ctx context.Context, id int32) (User, error)
GetUserByUID(ctx context.Context, id int32) (User, error)
GetUserByUsername(ctx context.Context, username string) (User, error)
GetUsers(ctx context.Context) ([]User, error)
SetCallTranscript(ctx context.Context, iD uuid.UUID, transcript *string) error
2024-08-06 11:19:30 -04:00
SetTalkgroupTags(ctx context.Context, sys int, tg int, tags []string) error
2024-07-28 19:51:23 -04:00
UpdatePassword(ctx context.Context, username string, password string) error
}
var _ Querier = (*Queries)(nil)