MCPcopy
hub / github.com/mayneyao/eidos / syncExec2

Method syncExec2

packages/core/meta-table/extension.test.ts:59–70  ·  view source on GitHub ↗
(sql: string, params: any[] = [])

Source from the content-addressed store, hash-verified

57 }
58
59 syncExec2(sql: string, params: any[] = []): void {
60 // Handle INSERT operations
61 if (sql.includes("INSERT INTO")) {
62 const extension = {
63 id: `ext-${this.idCounter++}`,
64 slug: params[1], // Assuming slug is the second parameter
65 name: params[2] || "Test Extension",
66 type: "script",
67 }
68 this.extensions.push(extension)
69 }
70 }
71
72 get db() {
73 return this

Callers 13

deleteByTableIdMethod · 0.45
reorderViewsMethod · 0.45
delMethod · 0.45
delByMethod · 0.45
addMethod · 0.45
deleteByRawTableNameMethod · 0.45
changeTypeMethod · 0.45
ReferenceTableClass · 0.45
updateNodeNameMethod · 0.45
getOrCreateNodeMethod · 0.45
addMethod · 0.45
delMethod · 0.45

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected