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

Method getViewColumns

packages/core/sdk/sql-data-view.ts:111–117  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

109 }
110
111 async getViewColumns(id: string) {
112 const viewName = `vw_${id}`
113 const columns = await this.dataSpace.db
114 .prepare(`PRAGMA table_info(${viewName});`)
115 .all()
116 return columns
117 }
118
119 async getViewFields(id: string): Promise<IField[]> {
120 const viewName = `vw_${id}`

Callers 1

getViewFieldsMethod · 0.95

Calls 2

allMethod · 0.80
prepareMethod · 0.65

Tested by

no test coverage detected