1// Code generated by sqlc. DO NOT EDIT.
2// versions:
3// sqlc v1.30.0
4
5package sqlc
6
7import (
8 "context"
9 "database/sql"
10)
11
12type Querier interface {
13 AddToWhitelist(ctx context.Context, domain string) error
14 AssignTagToFavorite(ctx context.Context, arg AssignTagToFavoriteParams) error
15 CreateFavorite(ctx context.Context, arg CreateFavoriteParams) (Favorite, error)
16 CreateFolder(ctx context.Context, arg CreateFolderParams) (FavoriteFolder, error)
17 CreateTag(ctx context.Context, arg CreateTagParams) (FavoriteTag, error)
18 DeleteAllHistory(ctx context.Context) error
19 // Deletes exited browser sessions older than the given cutoff time.
20 DeleteExitedSessionsBefore(ctx context.Context, endedAt sql.NullTime) (int64, error)
21 DeleteFavorite(ctx context.Context, id int64) error
22 DeleteFolder(ctx context.Context, id int64) error
23 DeleteHistoryByDomain(ctx context.Context, arg DeleteHistoryByDomainParams) error
24 DeleteHistoryByID(ctx context.Context, id int64) error
25 DeleteHistoryOlderThan(ctx context.Context, lastVisited sql.NullTime) error
26 // Deletes exited browser sessions beyond the keep limit, keeping the most recent ones.
27 DeleteOldestExitedSessions(ctx context.Context, offset int64) (int64, error)
28 DeleteSession(ctx context.Context, id string) error
29 DeleteSessionState(ctx context.Context, sessionID string) error
30 DeleteTag(ctx context.Context, id int64) error
31 DeleteZoomLevel(ctx context.Context, domain string) error
32 GetActiveBrowserSession(ctx context.Context) (Session, error)
33 GetAllFavorites(ctx context.Context) ([]Favorite, error)
34 GetAllFolders(ctx context.Context) ([]FavoriteFolder, error)
35 GetAllMostVisited(ctx context.Context) ([]History, error)
36 GetAllRecentHistory(ctx context.Context) ([]History, error)
37 GetAllSessionStates(ctx context.Context) ([]SessionState, error)
38 GetAllTags(ctx context.Context) ([]FavoriteTag, error)
39 GetAllWhitelistedDomains(ctx context.Context) ([]string, error)
40 GetChildFolders(ctx context.Context, parentID sql.NullInt64) ([]FavoriteFolder, error)
41 GetDailyVisitCount(ctx context.Context, date interface{}) ([]GetDailyVisitCountRow, error)
42 GetDomainStats(ctx context.Context, limit int64) ([]GetDomainStatsRow, error)
43 GetFavoriteByID(ctx context.Context, id int64) (Favorite, error)
44 GetFavoriteByShortcut(ctx context.Context, shortcutKey sql.NullInt64) (Favorite, error)
45 GetFavoriteByURL(ctx context.Context, url string) (Favorite, error)
46 GetFavoritesByFolder(ctx context.Context, folderID sql.NullInt64) ([]Favorite, error)
47 GetFavoritesWithoutFolder(ctx context.Context) ([]Favorite, error)
48 GetFolderByID(ctx context.Context, id int64) (FavoriteFolder, error)
49 GetHistoryByURL(ctx context.Context, url string) (History, error)
50 GetHistoryStats(ctx context.Context) (GetHistoryStatsRow, error)
51 GetHourlyDistribution(ctx context.Context) ([]GetHourlyDistributionRow, error)
52 GetMostVisited(ctx context.Context, datetime interface{}) ([]History, error)
53 GetRecentHistory(ctx context.Context, arg GetRecentHistoryParams) ([]History, error)
54 GetRecentHistorySince(ctx context.Context, datetime interface{}) ([]History, error)
55 GetRecentSessions(ctx context.Context, limit int64) ([]Session, error)
56 GetRootFolders(ctx context.Context) ([]FavoriteFolder, error)
57 GetSessionByID(ctx context.Context, id string) (Session, error)
58 GetSessionState(ctx context.Context, sessionID string) (SessionState, error)
59 GetSessionsWithState(ctx context.Context, limit int64) ([]GetSessionsWithStateRow, error)
60 GetTagByID(ctx context.Context, id int64) (FavoriteTag, error)
61 GetTagByName(ctx context.Context, name string) (FavoriteTag, error)
62 GetTagsForFavorite(ctx context.Context, favoriteID int64) ([]FavoriteTag, error)
63 GetTotalSessionStatesSize(ctx context.Context) (interface{}, error)
64 GetZoomLevel(ctx context.Context, domain string) (ZoomLevel, error)
65 IncrementVisitCount(ctx context.Context, url string) error
66 InsertSession(ctx context.Context, arg InsertSessionParams) error
67 IsWhitelisted(ctx context.Context, domain string) (int64, error)
68 ListZoomLevels(ctx context.Context) ([]ZoomLevel, error)
69 MarkSessionEnded(ctx context.Context, arg MarkSessionEndedParams) error
70 RemoveFromWhitelist(ctx context.Context, domain string) error
71 RemoveTagFromFavorite(ctx context.Context, arg RemoveTagFromFavoriteParams) error
72 SearchHistory(ctx context.Context, arg SearchHistoryParams) ([]History, error)
73 SearchHistoryFTSTitle(ctx context.Context, arg SearchHistoryFTSTitleParams) ([]History, error)
74 SearchHistoryFTSUrl(ctx context.Context, arg SearchHistoryFTSUrlParams) ([]History, error)
75 SetFavoriteFolder(ctx context.Context, arg SetFavoriteFolderParams) error
76 SetFavoriteShortcut(ctx context.Context, arg SetFavoriteShortcutParams) error
77 SetZoomLevel(ctx context.Context, arg SetZoomLevelParams) error
78 UpdateFavorite(ctx context.Context, arg UpdateFavoriteParams) error
79 UpdateFavoritePosition(ctx context.Context, arg UpdateFavoritePositionParams) error
80 UpdateFolder(ctx context.Context, arg UpdateFolderParams) error
81 UpdateFolderPosition(ctx context.Context, arg UpdateFolderPositionParams) error
82 UpdateTag(ctx context.Context, arg UpdateTagParams) error
83 UpsertHistory(ctx context.Context, arg UpsertHistoryParams) error
84 UpsertSessionState(ctx context.Context, arg UpsertSessionStateParams) error
85}
86
87var _ Querier = (*Queries)(nil)