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

Method load

src/interpreter/python/engine.ts:57–65  ·  view source on GitHub ↗
(configs: DataSourceConfig | DataSourceConfig[])

Source from the content-addressed store, hash-verified

55 }
56
57 async load(configs: DataSourceConfig | DataSourceConfig[]): Promise<void> {
58 const sources = Array.isArray(configs) ? configs : [configs];
59 if (sources.length !== 1) {
60 throw new Error(`PythonEngine currently supports exactly one data source, received ${sources.length}`);
61 }
62 const config = sources[0];
63 this.source = null;
64 this.source = sourceSchema.parse(config);
65 }
66
67 async schema(): Promise<Schema> {
68 if (!this.source) throw new Error('No data loaded. Please call source() first.');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected