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

Method profile

src/remote/sqlserver/engine.ts:92–99  ·  view source on GitHub ↗
(schema: Schema, options: ProfileOptions = {})

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

runQueryMethod · 0.95
profileTablesFunction · 0.90
parseProfileOptionsFunction · 0.90

Tested by

no test coverage detected