(schema: Schema, options: ProfileOptions = {}, signal?: AbortSignal)
| 91 | } |
| 92 | |
| 93 | async profile(schema: Schema, options: ProfileOptions = {}, signal?: AbortSignal): Promise<Profile> { |
| 94 | if (!this.pool) throw new Error('No data loaded. Please call source() first.'); |
| 95 | throwIfAborted(signal); |
| 96 | return profileTables( |
| 97 | async (query) => (await this.runQuery(query, signal)).recordset, |
| 98 | schema, |
| 99 | parseProfileOptions(options, { metrics: DEFAULT_METRICS }) |
| 100 | ); |
| 101 | } |
| 102 | |
| 103 | async getDSL(query: string, dataModel: DataModel, signal?: AbortSignal): Promise<TranslationResult> { |
| 104 | if (!this.pool) throw new Error('No data loaded. Please call source() first.'); |
nothing calls this directly
no test coverage detected