v0.33.2 57f21d6

querier.go RawHistoryFolder

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	CapVisitCount(ctx context.Context, arg CapVisitCountParams) error
16	CreateFavorite(ctx context.Context, arg CreateFavoriteParams) (CreateFavoriteRow, 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	DeleteFavicon(ctx context.Context, key string) error
22	DeleteFavorite(ctx context.Context, id int64) error
23	DeleteHistoryByDomain(ctx context.Context, domain sql.NullString) error
24	DeleteHistoryByID(ctx context.Context, id int64) error
25	DeleteHistoryOlderThan(ctx context.Context, lastVisited sql.NullTime) error
26	DeleteHistorySince(ctx context.Context, lastVisited sql.NullTime) error
27	// Deletes exited browser sessions beyond the keep limit, keeping the most recent ones.
28	DeleteOldestExitedSessions(ctx context.Context, offset int64) (int64, error)
29	DeletePermission(ctx context.Context, arg DeletePermissionParams) error
30	DeleteSession(ctx context.Context, id string) error
31	DeleteSessionState(ctx context.Context, sessionID string) error
32	DeleteTag(ctx context.Context, id int64) error
33	DeleteZoomLevel(ctx context.Context, domain string) error
34	GetActiveBrowserSession(ctx context.Context) (Session, error)
35	GetAllFavorites(ctx context.Context) ([]GetAllFavoritesRow, error)
36	GetAllMostVisited(ctx context.Context) ([]History, error)
37	GetAllRecentHistory(ctx context.Context) ([]History, error)
38	GetAllRecentHistoryByDomain(ctx context.Context, domain sql.NullString) ([]History, error)
39	GetAllSessionStates(ctx context.Context) ([]SessionState, error)
40	GetAllTags(ctx context.Context) ([]FavoriteTag, error)
41	GetAllWhitelistedDomains(ctx context.Context) ([]string, error)
42	GetDailyVisitCount(ctx context.Context, date interface{}) ([]GetDailyVisitCountRow, error)
43	GetDomainStats(ctx context.Context, limit int64) ([]GetDomainStatsRow, error)
44	GetFavicon(ctx context.Context, key string) (Favicon, error)
45	GetFavoriteByID(ctx context.Context, id int64) (GetFavoriteByIDRow, error)
46	GetFavoriteByShortcut(ctx context.Context, shortcutKey sql.NullInt64) (GetFavoriteByShortcutRow, error)
47	GetFavoriteByURL(ctx context.Context, url string) (GetFavoriteByURLRow, error)
48	GetFavoritesByTag(ctx context.Context, tagID int64) ([]GetFavoritesByTagRow, 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	GetMostVisitedHistory(ctx context.Context, limit int64) ([]History, error)
54	// Bounded window variant: the direct comparison keeps the last_visited index
55	// usable. Rows with a NULL last_visited are intentionally excluded.
56	GetMostVisitedHistorySinceCutoff(ctx context.Context, arg GetMostVisitedHistorySinceCutoffParams) ([]History, error)
57	GetPermission(ctx context.Context, arg GetPermissionParams) (Permission, error)
58	GetRecentHistory(ctx context.Context, arg GetRecentHistoryParams) ([]History, error)
59	GetRecentHistoryByDomain(ctx context.Context, arg GetRecentHistoryByDomainParams) ([]History, error)
60	GetRecentHistorySince(ctx context.Context, datetime interface{}) ([]History, error)
61	// Bounded window variant: the direct comparison keeps the last_visited index
62	// usable. Rows with a NULL last_visited are intentionally excluded.
63	GetRecentHistorySinceCutoff(ctx context.Context, arg GetRecentHistorySinceCutoffParams) ([]History, error)
64	GetRecentHistoryWindow(ctx context.Context, arg GetRecentHistoryWindowParams) ([]History, error)
65	GetRecentHistoryWindowByDomain(ctx context.Context, arg GetRecentHistoryWindowByDomainParams) ([]History, error)
66	GetRecentSessions(ctx context.Context, limit int64) ([]Session, error)
67	GetSessionByID(ctx context.Context, id string) (Session, error)
68	GetSessionState(ctx context.Context, sessionID string) (SessionState, error)
69	GetSessionsWithState(ctx context.Context, limit int64) ([]GetSessionsWithStateRow, error)
70	GetTagByID(ctx context.Context, id int64) (FavoriteTag, error)
71	GetTagByName(ctx context.Context, trim string) (FavoriteTag, error)
72	GetTagsForFavorite(ctx context.Context, favoriteID int64) ([]FavoriteTag, error)
73	GetTagsForFavorites(ctx context.Context, favoriteIds []int64) ([]GetTagsForFavoritesRow, error)
74	GetTotalSessionStatesSize(ctx context.Context) (interface{}, error)
75	GetZoomLevel(ctx context.Context, domain string) (ZoomLevel, error)
76	IncrementVisitCount(ctx context.Context, url string) error
77	IncrementVisitCountByDelta(ctx context.Context, arg IncrementVisitCountByDeltaParams) error
78	InsertSession(ctx context.Context, arg InsertSessionParams) error
79	IsWhitelisted(ctx context.Context, domain string) (int64, error)
80	ListAllPermissions(ctx context.Context) ([]Permission, error)
81	ListPermissionsByOrigin(ctx context.Context, origin string) ([]Permission, error)
82	ListZoomLevels(ctx context.Context) ([]ZoomLevel, error)
83	MarkSessionEnded(ctx context.Context, arg MarkSessionEndedParams) error
84	RemoveFromWhitelist(ctx context.Context, domain string) error
85	RemoveTagFromFavorite(ctx context.Context, arg RemoveTagFromFavoriteParams) error
86	SearchHistory(ctx context.Context, arg SearchHistoryParams) ([]History, error)
87	SearchHistoryFTSTitle(ctx context.Context, arg SearchHistoryFTSTitleParams) ([]History, error)
88	SearchHistoryFTSUrlWithDomainBoost(ctx context.Context, arg SearchHistoryFTSUrlWithDomainBoostParams) ([]SearchHistoryFTSUrlWithDomainBoostRow, error)
89	SetFavoriteShortcut(ctx context.Context, arg SetFavoriteShortcutParams) error
90	SetPermission(ctx context.Context, arg SetPermissionParams) error
91	SetZoomLevel(ctx context.Context, arg SetZoomLevelParams) error
92	UpdateFaviconLastChecked(ctx context.Context, arg UpdateFaviconLastCheckedParams) error
93	UpdateFavorite(ctx context.Context, arg UpdateFavoriteParams) error
94	UpdateFavoritePosition(ctx context.Context, arg UpdateFavoritePositionParams) error
95	UpdateTag(ctx context.Context, arg UpdateTagParams) error
96	UpsertFavicon(ctx context.Context, arg UpsertFaviconParams) error
97	UpsertHistory(ctx context.Context, arg UpsertHistoryParams) error
98	UpsertSessionState(ctx context.Context, arg UpsertSessionStateParams) error
99}
100
101var _ Querier = (*Queries)(nil)

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close