MCPcopy Create free account
hub / github.com/antvis/AVA / profile

Method profile

src/remote/sqlserver/engine.ts:93–101  ·  view source on GitHub ↗
(schema: Schema, options: ProfileOptions = {}, signal?: AbortSignal)

Source from the content-addressed store, hash-verified

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.');

Callers

nothing calls this directly

Calls 4

runQueryMethod · 0.95
throwIfAbortedFunction · 0.90
profileTablesFunction · 0.90
parseProfileOptionsFunction · 0.90

Tested by

no test coverage detected