* Get table column information * @returns array of column information
()
| 53 | * @returns array of column information |
| 54 | */ |
| 55 | public async getTableColumns(): Promise<string[]> { |
| 56 | try { |
| 57 | const res = await this.dataSpace.exec2(`PRAGMA table_info(${this.name})`) |
| 58 | return res.map((col: any) => col.name) |
| 59 | } catch (error) { |
| 60 | console.error("Failed to get table columns:", error) |
| 61 | return [] |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | public async getRegularTriggers(tableName: string) { |
| 66 | return (await this.dataSpace.exec2( |