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

Function queryColumns

src/remote/sqlserver/engine.ts:46–51  ·  view source on GitHub ↗

Describe even zero-row results using TDS column metadata.

(columns: IColumnMetadata[string][])

Source from the content-addressed store, hash-verified

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

Callers 1

executeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected