MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-workbench / findOne

Method findOne

src/services/workbenchDB.ts:232–239  ·  view source on GitHub ↗
(query: FindOptions)

Source from the content-addressed store, hash-verified

230
231 // Uses the files table to do a findOne query
232 findOne(query: FindOptions) {
233 return this.sync.then((db) =>
234 db.File.findOne({
235 ...query,
236 include: this.db.fileIncludes,
237 })
238 );
239 }
240
241 // Uses the files table to do a findAll query
242 findAll(query: FindOptions) {

Callers 7

FileInfoDashFunction · 0.80
getWorkbenchInfoMethod · 0.80
getScanInfoMethod · 0.80
getFileCountMethod · 0.80
sqliteParserFunction · 0.80
jsonParserFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected