MCPcopy
hub / github.com/dqzboy/Docker-Proxy / get

Method get

hubcmdui/database/database.js:153–164  ·  view source on GitHub ↗

* 查询单条记录

(sql, params = [])

Source from the content-addressed store, hash-verified

151 * 查询单条记录
152 */
153 async get(sql, params = []) {
154 return new Promise((resolve, reject) => {
155 this.db.get(sql, params, (err, row) => {
156 if (err) {
157 logger.error('SQL查询失败:', err);
158 reject(err);
159 } else {
160 resolve(row);
161 }
162 });
163 });
164 }
165
166 /**
167 * 查询多条记录

Callers 15

isDatabaseReadyFunction · 0.95
getDatabaseStatsFunction · 0.95
createDefaultAdminMethod · 0.95
isInitializedMethod · 0.95
downloadImageFunction · 0.80
server.jsFile · 0.80
app.jsFile · 0.80
monitoring.jsFile · 0.80
systemStatus.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected