MCPcopy Index your code
hub / github.com/coderwhy/coderhub / getFileByFilename

Method getFileByFilename

src/service/file.service.js:22–26  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

20 }
21
22 async getFileByFilename(filename) {
23 const statement = `SELECT * FROM file WHERE filename = ?;`;
24 const [result] = await connection.execute(statement, [filename]);
25 return result[0];
26 }
27}
28
29module.exports = new FileService();

Callers 1

fileInfoMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected