mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
use reliable way to detect createtable statements (#19897)
* use reliable way to detect createtable statements * PR comments * comments
This commit is contained in:
@@ -130,4 +130,15 @@ export class DacFxService implements mssql.IDacFxService {
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
public async parseTSqlScript(filePath: string, databaseSchemaProvider: string): Promise<mssql.ParseTSqlScriptResult> {
|
||||
const params: contracts.ParseTSqlScriptParams = { filePath, databaseSchemaProvider };
|
||||
try {
|
||||
const result = await this.client.sendRequest(contracts.ParseTSqlScriptRequest.type, params);
|
||||
return result;
|
||||
} catch (e) {
|
||||
this.client.logFailedRequest(contracts.ParseTSqlScriptRequest.type, e);
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user