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

Method getLabelByName

src/service/label.service.js:10–14  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

8 }
9
10 async getLabelByName(name) {
11 const statement = `SELECT * FROM label WHERE name = ?;`;
12 const [result] = await connection.execute(statement, [name]);
13 return result[0];
14 }
15
16 async getLabels(limit, offset) {
17 const statement = `SELECT * FROM label LIMIT ?, ?;`;

Callers 1

verifyLabelExistsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected