// 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) (Favorite, error) CreateFolder(ctx context.Context, arg CreateFolderParams) (FavoriteFolder, 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) DeleteFavorite(ctx context.Context, id int64) error DeleteFolder(ctx context.Context, id int64) error DeleteHistoryByDomain(ctx context.Context, arg DeleteHistoryByDomainParams) error DeleteHistoryByID(ctx context.Context, id int64) error DeleteHistoryOlderThan(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) ([]Favorite, error) GetAllFolders(ctx context.Context) ([]FavoriteFolder, error) GetAllMostVisited(ctx context.Context) ([]History, error) GetAllRecentHistory(ctx context.Context) ([]History, error) GetAllSessionStates(ctx context.Context) ([]SessionState, error) GetAllTags(ctx context.Context) ([]FavoriteTag, error) GetAllWhitelistedDomains(ctx context.Context) ([]string, error) GetChildFolders(ctx context.Context, parentID sql.NullInt64) ([]FavoriteFolder, error) GetDailyVisitCount(ctx context.Context, date interface{}) ([]GetDailyVisitCountRow, error) GetDomainStats(ctx context.Context, limit int64) ([]GetDomainStatsRow, error) GetFavoriteByID(ctx context.Context, id int64) (Favorite, error) GetFavoriteByShortcut(ctx context.Context, shortcutKey sql.NullInt64) (Favorite, error) GetFavoriteByURL(ctx context.Context, url string) (Favorite, error) GetFavoritesByFolder(ctx context.Context, folderID sql.NullInt64) ([]Favorite, error) GetFavoritesWithoutFolder(ctx context.Context) ([]Favorite, error) GetFolderByID(ctx context.Context, id int64) (FavoriteFolder, 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) GetPermission(ctx context.Context, arg GetPermissionParams) (Permission, error) GetRecentHistory(ctx context.Context, arg GetRecentHistoryParams) ([]History, error) GetRecentHistorySince(ctx context.Context, datetime interface{}) ([]History, error) GetRecentSessions(ctx context.Context, limit int64) ([]Session, error) GetRootFolders(ctx context.Context) ([]FavoriteFolder, 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, name string) (FavoriteTag, error) GetTagsForFavorite(ctx context.Context, favoriteID int64) ([]FavoriteTag, 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) SearchHistoryFTSUrl(ctx context.Context, arg SearchHistoryFTSUrlParams) ([]History, error) SearchHistoryFTSUrlWithDomainBoost(ctx context.Context, arg SearchHistoryFTSUrlWithDomainBoostParams) ([]SearchHistoryFTSUrlWithDomainBoostRow, error) SetFavoriteFolder(ctx context.Context, arg SetFavoriteFolderParams) error SetFavoriteShortcut(ctx context.Context, arg SetFavoriteShortcutParams) error SetPermission(ctx context.Context, arg SetPermissionParams) error SetZoomLevel(ctx context.Context, arg SetZoomLevelParams) error UpdateFavorite(ctx context.Context, arg UpdateFavoriteParams) error UpdateFavoritePosition(ctx context.Context, arg UpdateFavoritePositionParams) error UpdateFolder(ctx context.Context, arg UpdateFolderParams) error UpdateFolderPosition(ctx context.Context, arg UpdateFolderPositionParams) error UpdateTag(ctx context.Context, arg UpdateTagParams) error UpsertHistory(ctx context.Context, arg UpsertHistoryParams) error UpsertSessionState(ctx context.Context, arg UpsertSessionStateParams) error } var _ Querier = (*Queries)(nil)