Add SDK sql project template (#18058)

* add sdk style project template

* update description and order

* update template

* update template and add link

* remove ToolsVersion and xmlns from project node

* update template name to SQL Database (SDK)
This commit is contained in:
Kim Santiago
2022-01-19 10:08:47 -08:00
committed by GitHub
parent 8378e89639
commit 967cd2b102
7 changed files with 54 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ import * as constants from '../common/constants';
import { promises as fs } from 'fs';
export let newSqlProjectTemplate: string;
export let newSdkSqlProjectTemplate: string;
// Object types
@@ -51,6 +52,7 @@ export async function loadTemplates(templateFolderPath: string) {
await Promise.all([
Promise.resolve(newSqlProjectTemplate = await loadTemplate(templateFolderPath, 'newSqlProjectTemplate.xml')),
Promise.resolve(newSdkSqlProjectTemplate = await loadTemplate(templateFolderPath, 'newSdkSqlProjectTemplate.xml')),
loadObjectTypeInfo(script, constants.scriptFriendlyName, templateFolderPath, 'newTsqlScriptTemplate.sql'),
loadObjectTypeInfo(table, constants.tableFriendlyName, templateFolderPath, 'newTsqlTableTemplate.sql'),
loadObjectTypeInfo(view, constants.viewFriendlyName, templateFolderPath, 'newTsqlViewTemplate.sql'),