mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 09:35:39 -05:00
More add database reference dialog UI (#12066)
* add suppress missing dependencies checkbox * add example usage * set font-styles * Fix typo * allow example usage to be selectable * don't localize example usage * move example usage strings to a new section
This commit is contained in:
@@ -110,6 +110,11 @@ export const databaseName = localize('databaseName', "Database name");
|
||||
export const databaseVariable = localize('databaseVariable', "Database variable");
|
||||
export const serverName = localize('serverName', "Server name");
|
||||
export const serverVariable = localize('serverVariable', "Server variable");
|
||||
export const suppressMissingDependenciesErrors = localize('suppressMissingDependenciesErrors', "Suppress errors caused by unresolved references in the referenced project");
|
||||
export const exampleUsage = localize('exampleUsage', "Example Usage");
|
||||
export const enterSystemDbName = localize('enterSystemDbName', "Enter a database name for this system database");
|
||||
export const databaseNameRequiredVariableOptional = localize('databaseNameRequiredVariableOptional', "A database name is required. The database variable is optional.");
|
||||
export const databaseNameServerNameVariableRequired = localize('databaseNameServerNameVariableRequired', "A database name, server name, and server variable are required. The database variable is optional");
|
||||
|
||||
// Error messages
|
||||
|
||||
@@ -207,6 +212,8 @@ export const TargetConnectionString = 'TargetConnectionString';
|
||||
export const PreDeploy = 'PreDeploy';
|
||||
export const PostDeploy = 'PostDeploy';
|
||||
export const None = 'None';
|
||||
export const True = 'True';
|
||||
export const False = 'False';
|
||||
|
||||
// SqlProj File targets
|
||||
export const NetCoreTargets = '$(NETCoreTargetsPath)\\Microsoft.Data.Tools.Schema.SqlTasks.targets';
|
||||
@@ -262,3 +269,8 @@ export enum DatabaseProjectItemType {
|
||||
|
||||
// System dbs
|
||||
export const systemDbs = ['master', 'msdb', 'tempdb', 'model'];
|
||||
|
||||
// SQL queries
|
||||
export const sameDatabaseExampleUsage = 'SELECT * FROM [Schema1].[Table1]';
|
||||
export function differentDbSameServerExampleUsage(db: string) { return `SELECT * FROM [${db}].[Schema1].[Table1]"`; }
|
||||
export function differentDbDifferentServerExampleUsage(server: string, db: string) { return `SELECT * FROM [${server}].[${db}].[Schema1].[Table1]`; }
|
||||
|
||||
@@ -15,4 +15,10 @@ export namespace cssStyles {
|
||||
|
||||
export const addDatabaseReferenceDialogLabelWidth = '215px';
|
||||
export const addDatabaseReferenceInputboxWidth = '220px';
|
||||
|
||||
// font-styles
|
||||
export namespace fontStyle {
|
||||
export const normal = 'normal';
|
||||
export const italics = 'italic';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user