MCPcopy Create free account
hub / github.com/antvis/AVA / queryColumns

Function queryColumns

src/remote/sqlserver/engine.ts:45–50  ·  view source on GitHub ↗

Describe even zero-row results using TDS column metadata.

(columns: IColumnMetadata[string][])

Source from the content-addressed store, hash-verified

43
44/** Describe even zero-row results using TDS column metadata. */
45function queryColumns(columns: IColumnMetadata[string][]): QueryColumn[] {
46 return columns.map((column) => {
47 const type = column.type as unknown as { declaration: string };
48 return { name: column.name, type: type.declaration };
49 });
50}
51
52/** SQL Server executes native T-SQL remotely; no rows are imported into DuckDB. */
53export class SQLServerEngine implements AnalysisEngine {

Callers 1

executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected