MCPcopy
hub / github.com/readest/readest / DatabaseService

Interface DatabaseService

apps/readest-app/src/types/database.ts:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8export type DatabaseRow = Record<string, unknown>;
9
10export interface DatabaseService {
11 execute(sql: string, params?: unknown[]): Promise<DatabaseExecResult>;
12 select<T extends DatabaseRow = DatabaseRow>(sql: string, params?: unknown[]): Promise<T[]>;
13 batch(statements: string[]): Promise<void>;
14 close(): Promise<void>;
15}

Callers 24

checkAppImageUpdateFunction · 0.65
buildNightlyUpdateFunction · 0.65
checkpointMethod · 0.65
upsertBookMethod · 0.65
insertPageEventMethod · 0.65
recomputeBookTotalsMethod · 0.65
applyRemoteEventsMethod · 0.65
setCursorMethod · 0.65
NumberInputFunction · 0.65
LabelPopoverFunction · 0.65
writeTextToClipboardFunction · 0.65
queryTablesFunction · 0.65

Implementers 4

NativeDatabaseServiceapps/readest-app/src/services/database
NodeDatabaseServiceapps/readest-app/src/services/database
WebDatabaseServiceapps/readest-app/src/services/database
TauriDatabaseAdapterapps/readest-app/src/__tests__/databas

Calls

no outgoing calls

Tested by

no test coverage detected