// Code generated by sqlc. DO NOT EDIT. // versions: // sqlc v1.30.0 package sqlc import ( "context" "database/sql" ) type Querier interface { AddToWhitelist(ctx context.Context, domain string) error AssignTagToFavorite(ctx context.Context, arg AssignTagToFavoriteParams) error CapVisitCount(ctx context.Context, arg CapVisitCountParams) error CreateFavorite(ctx context.Context, arg CreateFavoriteParams) (CreateFavoriteRow, error) CreateTag(ctx context.Context, arg CreateTagParams) (FavoriteTag, error) DeleteAllHistory(ctx context.Context) error // Deletes exited browser sessions older than the given cutoff time. DeleteExitedSessionsBefore(ctx context.Context, endedAt sql.NullTime) (int64, error) DeleteFavicon(ctx context.Context, key string) error DeleteFavorite(ctx context.Context, id int64) error DeleteHistoryByDomain(ctx context.Context, domain sql.NullString) error DeleteHistoryByID(ctx context.Context, id int64) error DeleteHistoryOlderThan(ctx context.Context, lastVisited sql.NullTime) error DeleteHistorySince(ctx context.Context, lastVisited sql.NullTime) error // Deletes exited browser sessions beyond the keep limit, keeping the most recent ones. DeleteOldestExitedSessions(ctx context.Context, offset int64) (int64, error) DeletePermission(ctx context.Context, arg DeletePermissionParams) error DeleteSession(ctx context.Context, id string) error DeleteSessionState(ctx context.Context, sessionID string) error DeleteTag(ctx context.Context, id int64) error DeleteZoomLevel(ctx context.Context, domain string) error GetActiveBrowserSession(ctx context.Context) (Session, error) GetAllFavorites(ctx context.Context) ([]GetAllFavoritesRow, error) GetAllMostVisited(ctx context.Context) ([]History, error) GetAllRecentHistory(ctx context.Context) ([]History, error) GetAllRecentHistoryByDomain(ctx context.Context, domain sql.NullString) ([]History, error) GetAllSessionStates(ctx context.Context) ([]SessionState, error) GetAllTags(ctx context.Context) ([]FavoriteTag, error) GetAllWhitelistedDomains(ctx context.Context) ([]string, error) GetDailyVisitCount(ctx context.Context, date interface{}) ([]GetDailyVisitCountRow, error) GetDomainStats(ctx context.Context, limit int64) ([]GetDomainStatsRow, error) GetFavicon(ctx context.Context, key string) (Favicon, error) GetFavoriteByID(ctx context.Context, id int64) (GetFavoriteByIDRow, error) GetFavoriteByShortcut(ctx context.Context, shortcutKey sql.NullInt64) (GetFavoriteByShortcutRow, error) GetFavoriteByURL(ctx context.Context, url string) (GetFavoriteByURLRow, error) GetFavoritesByTag(ctx context.Context, tagID int64) ([]GetFavoritesByTagRow, error) GetHistoryByURL(ctx context.Context, url string) (History, error) GetHistoryStats(ctx context.Context) (GetHistoryStatsRow, error) GetHourlyDistribution(ctx context.Context) ([]GetHourlyDistributionRow, error) GetMostVisited(ctx context.Context, datetime interface{}) ([]History, error) GetMostVisitedHistory(ctx context.Context, limit int64) ([]History, error) // Bounded window variant: the direct comparison keeps the last_visited index // usable. Rows with a NULL last_visited are intentionally excluded. GetMostVisitedHistorySinceCutoff(ctx context.Context, arg GetMostVisitedHistorySinceCutoffParams) ([]History, error) GetPermission(ctx context.Context, arg GetPermissionParams) (Permission, error) GetRecentHistory(ctx context.Context, arg GetRecentHistoryParams) ([]History, error) GetRecentHistoryByDomain(ctx context.Context, arg GetRecentHistoryByDomainParams) ([]History, error) GetRecentHistorySince(ctx context.Context, datetime interface{}) ([]History, error) // Bounded window variant: the direct comparison keeps the last_visited index // usable. Rows with a NULL last_visited are intentionally excluded. GetRecentHistorySinceCutoff(ctx context.Context, arg GetRecentHistorySinceCutoffParams) ([]History, error) GetRecentHistoryWindow(ctx context.Context, arg GetRecentHistoryWindowParams) ([]History, error) GetRecentHistoryWindowByDomain(ctx context.Context, arg GetRecentHistoryWindowByDomainParams) ([]History, error) GetRecentSessions(ctx context.Context, limit int64) ([]Session, error) GetSessionByID(ctx context.Context, id string) (Session, error) GetSessionState(ctx context.Context, sessionID string) (SessionState, error) GetSessionsWithState(ctx context.Context, limit int64) ([]GetSessionsWithStateRow, error) GetTagByID(ctx context.Context, id int64) (FavoriteTag, error) GetTagByName(ctx context.Context, trim string) (FavoriteTag, error) GetTagsForFavorite(ctx context.Context, favoriteID int64) ([]FavoriteTag, error) GetTagsForFavorites(ctx context.Context, favoriteIds []int64) ([]GetTagsForFavoritesRow, error) GetTotalSessionStatesSize(ctx context.Context) (interface{}, error) GetZoomLevel(ctx context.Context, domain string) (ZoomLevel, error) IncrementVisitCount(ctx context.Context, url string) error IncrementVisitCountByDelta(ctx context.Context, arg IncrementVisitCountByDeltaParams) error InsertSession(ctx context.Context, arg InsertSessionParams) error IsWhitelisted(ctx context.Context, domain string) (int64, error) ListAllPermissions(ctx context.Context) ([]Permission, error) ListPermissionsByOrigin(ctx context.Context, origin string) ([]Permission, error) ListZoomLevels(ctx context.Context) ([]ZoomLevel, error) MarkSessionEnded(ctx context.Context, arg MarkSessionEndedParams) error RemoveFromWhitelist(ctx context.Context, domain string) error RemoveTagFromFavorite(ctx context.Context, arg RemoveTagFromFavoriteParams) error SearchHistory(ctx context.Context, arg SearchHistoryParams) ([]History, error) SearchHistoryFTSTitle(ctx context.Context, arg SearchHistoryFTSTitleParams) ([]History, error) SearchHistoryFTSUrlWithDomainBoost(ctx context.Context, arg SearchHistoryFTSUrlWithDomainBoostParams) ([]SearchHistoryFTSUrlWithDomainBoostRow, error) SetFavoriteShortcut(ctx context.Context, arg SetFavoriteShortcutParams) error SetPermission(ctx context.Context, arg SetPermissionParams) error SetZoomLevel(ctx context.Context, arg SetZoomLevelParams) error UpdateFaviconLastChecked(ctx context.Context, arg UpdateFaviconLastCheckedParams) error UpdateFavorite(ctx context.Context, arg UpdateFavoriteParams) error UpdateFavoritePosition(ctx context.Context, arg UpdateFavoritePositionParams) error UpdateTag(ctx context.Context, arg UpdateTagParams) error UpsertFavicon(ctx context.Context, arg UpsertFaviconParams) error UpsertHistory(ctx context.Context, arg UpsertHistoryParams) error UpsertSessionState(ctx context.Context, arg UpsertSessionStateParams) error } var _ Querier = (*Queries)(nil)