stillbox/pkg/database/querier.go

46 lines
2.4 KiB
Go
Raw Normal View History

2024-07-28 19:51:23 -04:00
// Code generated by sqlc. DO NOT EDIT.
// versions:
2024-11-15 11:34:54 -05:00
// sqlc v1.27.0
2024-07-28 19:51:23 -04:00
package database
import (
"context"
"github.com/google/uuid"
"github.com/jackc/pgx/v5/pgtype"
)
type Querier interface {
2024-11-01 09:15:39 -04:00
AddAlert(ctx context.Context, arg AddAlertParams) error
AddCall(ctx context.Context, arg AddCallParams) error
2024-11-17 21:46:10 -05:00
AddLearnedTalkgroup(ctx context.Context, arg AddLearnedTalkgroupParams) (int, error)
AddTalkgroupWithLearnedFlag(ctx context.Context, systemID int32, tGID int32) 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-11-17 21:46:10 -05:00
GetTalkgroup(ctx context.Context, systemID int32, tGID int32) (GetTalkgroupRow, error)
2024-11-15 11:34:54 -05:00
GetTalkgroupIDsByTags(ctx context.Context, anyTags []string, allTags []string, notTags []string) ([]GetTalkgroupIDsByTagsRow, error)
2024-11-17 21:46:10 -05:00
GetTalkgroupTags(ctx context.Context, systemID int32, tGID int32) ([]string, error)
2024-11-15 11:34:54 -05:00
GetTalkgroupWithLearned(ctx context.Context, systemID int32, tGID int32) (GetTalkgroupWithLearnedRow, error)
2024-11-03 08:44:34 -05:00
GetTalkgroupsWithAllTags(ctx context.Context, tags []string) ([]GetTalkgroupsWithAllTagsRow, error)
GetTalkgroupsWithAnyTags(ctx context.Context, tags []string) ([]GetTalkgroupsWithAnyTagsRow, error)
2024-11-04 23:41:52 -05:00
GetTalkgroupsWithLearned(ctx context.Context) ([]GetTalkgroupsWithLearnedRow, error)
GetTalkgroupsWithLearnedBySystem(ctx context.Context, system int32) ([]GetTalkgroupsWithLearnedBySystemRow, error)
2024-11-19 09:10:55 -05:00
GetUserByID(ctx context.Context, id int) (User, error)
GetUserByUID(ctx context.Context, id int) (User, error)
2024-07-28 19:51:23 -04:00
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-11-17 21:46:10 -05:00
SetTalkgroupTags(ctx context.Context, tags []string, systemID int32, tGID int32) error
2024-07-28 19:51:23 -04:00
UpdatePassword(ctx context.Context, username string, password string) error
2024-11-10 10:13:38 -05:00
UpdateTalkgroup(ctx context.Context, arg UpdateTalkgroupParams) (Talkgroup, error)
2024-11-20 07:26:59 -05:00
UpsertTalkgroup(ctx context.Context, arg UpsertTalkgroupParams) (Talkgroup, error)
2024-07-28 19:51:23 -04:00
}
var _ Querier = (*Queries)(nil)