(query: string, dataModel: DataModel)
| 99 | } |
| 100 | |
| 101 | async getDSL(query: string, dataModel: DataModel): Promise<TranslationResult> { |
| 102 | if (!this.pool) throw new Error('No data loaded. Please call source() first.'); |
| 103 | return this.dialect.getDSL(query, dataModel); |
| 104 | } |
| 105 | |
| 106 | async execute<T = Record<string, unknown>>(dsl: string, options?: ExecutionOptions): Promise<ExecutionResult<T>> { |
| 107 | if (!this.pool) throw new Error('No data loaded. Please call source() first.'); |