(schema: Schema, options: ProfileOptions = {})
| 81 | } |
| 82 | |
| 83 | async profile(schema: Schema, options: ProfileOptions = {}): Promise<Profile> { |
| 84 | if (!this.source) throw new Error('No data loaded. Please call source() first.'); |
| 85 | |
| 86 | const tables = await this.metadata(profileCode(parseProfileOptions(options, { metrics: DEFAULT_METRICS }), schema)); |
| 87 | return profileOutputSchema.parse({ models: tables }); |
| 88 | } |
| 89 | |
| 90 | async execute<T = Record<string, unknown>>(code: string, options?: ExecutionOptions): Promise<ExecutionResult<T>> { |
| 91 | if (!this.source) throw new Error('No data loaded. Please call source() first.'); |
nothing calls this directly
no test coverage detected