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