(configs: DataSourceConfig | DataSourceConfig[])
| 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.'); |
nothing calls this directly
no outgoing calls
no test coverage detected