(sql: string, params: any[] = [])
| 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 |
no test coverage detected