MCPcopy Create free account
hub / github.com/coderwhy/coderhub / create

Method create

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

Source from the content-addressed store, hash-verified

2
3class LabelService {
4 async create(name) {
5 const statement = `INSERT INTO label (name) VALUES (?);`;
6 const [result] = await connection.execute(statement, [name]);
7 return result;
8 }
9
10 async getLabelByName(name) {
11 const statement = `SELECT * FROM label WHERE name = ?;`;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected