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

Method getTableColumns

packages/core/meta-table/base.ts:55–63  ·  view source on GitHub ↗

* Get table column information * @returns array of column information

()

Source from the content-addressed store, hash-verified

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(

Callers 7

columnExistsMethod · 0.95
getCustomPropertiesMethod · 0.80
registerTriggerMethod · 0.80
addDisplayPropertyMethod · 0.80
setDisplayPropertiesMethod · 0.80

Calls 2

errorMethod · 0.65
exec2Method · 0.45

Tested by 1