v0.24.0 a261e52

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	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)

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