MCPcopy Create free account
hub / github.com/CaviraOSS/PageLM / get

Method get

backend/src/utils/database/sqlite.ts:20–27  ·  view source on GitHub ↗
(sql: string, params: any[] = [])

Source from the content-addressed store, hash-verified

18 }
19
20 async get(sql: string, params: any[] = []): Promise<any> {
21 return new Promise((resolve, reject) => {
22 this.db.get(sql, params, (err, row) => {
23 if (err) reject(err)
24 else resolve(row)
25 })
26 })
27 }
28
29 async all(sql: string, params: any[] = []): Promise<any[]> {
30 return new Promise((resolve, reject) => {

Callers 15

DebateFunction · 0.80
ChatFunction · 0.80
QuizFunction · 0.80
startFunction · 0.80
reqFunction · 0.80
mkChatFunction · 0.80
getChatFunction · 0.80
addMsgFunction · 0.80
listChatsFunction · 0.80
getMsgsFunction · 0.80
emitFunction · 0.80
startJobIfReadyFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected