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

Method getDSL

src/interpreter/javascript/engine.ts:75–81  ·  view source on GitHub ↗
(query: string, dataModel: DataModel, signal?: AbortSignal)

Source from the content-addressed store, hash-verified

73 }
74
75 async getDSL(query: string, dataModel: DataModel, signal?: AbortSignal): Promise<TranslationResult> {
76 if (!this.data) {
77 throw new Error('No data loaded. Please call source() first.');
78 }
79
80 return signal ? this.dialect.getDSL(query, dataModel, signal) : this.dialect.getDSL(query, dataModel);
81 }
82
83 async execute<T = Record<string, unknown>>(
84 code: string,

Callers

nothing calls this directly

Calls 1

getDSLMethod · 0.65

Tested by

no test coverage detected