(schema: Schema, options: ProfileOptions = {})
| 90 | } |
| 91 | |
| 92 | async profile(schema: Schema, options: ProfileOptions = {}): Promise<Profile> { |
| 93 | if (!this.pool) throw new Error('No data loaded. Please call source() first.'); |
| 94 | return profileTables( |
| 95 | async (query) => (await this.runQuery(query)).recordset, |
| 96 | schema, |
| 97 | parseProfileOptions(options, { metrics: DEFAULT_METRICS }) |
| 98 | ); |
| 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.'); |
nothing calls this directly
no test coverage detected