MCPcopy Create free account
hub / github.com/PleasureTools/joyBox / Log

Method Log

backend/Src/Services/SqliteAdapter.ts:347–351  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

345 .map(x => ({ endpoint: x.endpoint, keys: { auth: x.auth, p256dh: x.p256dh } }));
346 }
347 public Log(message: string) {
348 return this.db
349 .prepare('INSERT INTO log (message) VALUES (@message)')
350 .run({ message });
351 }
352 public FetchRecentLogs(fromTm: number, limit = -1): LogItem[] {
353 const stmt =
354 'SELECT CAST(strftime(\'%s\', timestamp) AS INT) as timestamp, message \

Callers 8

StartMethod · 0.45
StopMethod · 0.45
CollectMethod · 0.45
OnAbortMethod · 0.45
CollectMethod · 0.45
OnAbortMethod · 0.45
OnUpdateMethod · 0.45
OnUpdateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected