mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Adding schema compare UX support for external streams/streaming jobs (#14134)
This commit is contained in:
7
extensions/mssql/src/mssql.d.ts
vendored
7
extensions/mssql/src/mssql.d.ts
vendored
@@ -221,6 +221,9 @@ export interface DeploymentOptions {
|
||||
excludeObjectTypes: SchemaObjectType[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Values from <DacFx>\Product\Source\DeploymentApi\ObjectTypes.cs
|
||||
*/
|
||||
export const enum SchemaObjectType {
|
||||
Aggregates = 0,
|
||||
ApplicationRoles = 1,
|
||||
@@ -288,7 +291,9 @@ export const enum SchemaObjectType {
|
||||
ServerAuditSpecifications = 63,
|
||||
ServerRoleMembership = 64,
|
||||
ServerRoles = 65,
|
||||
ServerTriggers = 66
|
||||
ServerTriggers = 66,
|
||||
ExternalStreams = 67,
|
||||
ExternalStreamingJobs = 68
|
||||
}
|
||||
|
||||
export interface SchemaCompareObjectId {
|
||||
|
||||
@@ -179,6 +179,8 @@ export const Defaults: string = localize('SchemaCompare.Defaults', "Defaults");
|
||||
export const ExtendedProperties: string = localize('SchemaCompare.ExtendedProperties', "Extended Properties");
|
||||
export const ExternalDataSources: string = localize('SchemaCompare.ExternalDataSources', "External Data Sources");
|
||||
export const ExternalFileFormats: string = localize('SchemaCompare.ExternalFileFormats', "External File Formats");
|
||||
export const ExternalStreams: string = localize('SchemaCompare.ExternalStreams', "External Streams");
|
||||
export const ExternalStreamingJobs: string = localize('SchemaCompare.ExternalStreamingJobs', "External Streaming Jobs");
|
||||
export const ExternalTables: string = localize('SchemaCompare.ExternalTables', "External Tables");
|
||||
export const Filegroups: string = localize('SchemaCompare.Filegroups', "Filegroups");
|
||||
export const Files: string = localize('SchemaCompare.Files', "Files");
|
||||
|
||||
@@ -110,6 +110,8 @@ export class SchemaCompareOptionsModel {
|
||||
loc.ExtendedProperties,
|
||||
loc.ExternalDataSources,
|
||||
loc.ExternalFileFormats,
|
||||
loc.ExternalStreams,
|
||||
loc.ExternalStreamingJobs,
|
||||
loc.ExternalTables,
|
||||
loc.Filegroups,
|
||||
loc.Files,
|
||||
@@ -703,6 +705,10 @@ export class SchemaCompareOptionsModel {
|
||||
return (this.deploymentOptions.excludeObjectTypes.find(x => x === mssql.SchemaObjectType.ExternalDataSources)) ? false : true;
|
||||
case loc.ExternalFileFormats:
|
||||
return (this.deploymentOptions.excludeObjectTypes.find(x => x === mssql.SchemaObjectType.ExternalFileFormats)) ? false : true;
|
||||
case loc.ExternalStreams:
|
||||
return (this.deploymentOptions.excludeObjectTypes.find(x => x === mssql.SchemaObjectType.ExternalStreams)) ? false : true;
|
||||
case loc.ExternalStreamingJobs:
|
||||
return (this.deploymentOptions.excludeObjectTypes.find(x => x === mssql.SchemaObjectType.ExternalStreamingJobs)) ? false : true;
|
||||
case loc.ExternalTables:
|
||||
return (this.deploymentOptions.excludeObjectTypes.find(x => x === mssql.SchemaObjectType.ExternalTables)) ? false : true;
|
||||
case loc.Filegroups:
|
||||
@@ -894,6 +900,16 @@ export class SchemaCompareOptionsModel {
|
||||
this.excludedObjectTypes.push(mssql.SchemaObjectType.ExternalFileFormats);
|
||||
}
|
||||
return;
|
||||
case loc.ExternalStreams:
|
||||
if (!included) {
|
||||
this.excludedObjectTypes.push(mssql.SchemaObjectType.ExternalStreams);
|
||||
}
|
||||
return;
|
||||
case loc.ExternalStreamingJobs:
|
||||
if (!included) {
|
||||
this.excludedObjectTypes.push(mssql.SchemaObjectType.ExternalStreamingJobs);
|
||||
}
|
||||
return;
|
||||
case loc.ExternalTables:
|
||||
if (!included) {
|
||||
this.excludedObjectTypes.push(mssql.SchemaObjectType.ExternalTables);
|
||||
|
||||
Reference in New Issue
Block a user