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

Method all

hubcmdui/database/database.js:169–180  ·  view source on GitHub ↗

* 查询多条记录

(sql, params = [])

Source from the content-addressed store, hash-verified

167 * 查询多条记录
168 */
169 async all(sql, params = []) {
170 return new Promise((resolve, reject) => {
171 this.db.all(sql, params, (err, rows) => {
172 if (err) {
173 logger.error('SQL查询失败:', err);
174 reject(err);
175 } else {
176 resolve(rows);
177 }
178 });
179 });
180 }
181
182
183

Callers 13

getCpuInfoFunction · 0.80
getUsersMethod · 0.80
getDocumentationListMethod · 0.80
getPublishedDocumentsMethod · 0.80
searchDocumentsMethod · 0.80
getConfigMethod · 0.80
getMenuItemsMethod · 0.80
getRegistryConfigsMethod · 0.80
getContainersStatusFunction · 0.80
getSystemResourcesFunction · 0.80
searchAllRegistriesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected