Enable scripting for triggers and other objects (#16885)

* WIP 1

* Add parentName to azdata

* Add some additional types for scripting

* Add parent type name to support view subobjects

* bump dependencies and address review comments
This commit is contained in:
Karl Burtram
2021-08-26 14:43:36 -07:00
committed by GitHub
parent dc1e460f71
commit a0f3d0873b
11 changed files with 99 additions and 200 deletions

View File

@@ -12,6 +12,8 @@ export class ObjectMetadataWrapper implements ObjectMetadata {
public urn: string;
public name: string;
public schema: string;
public parentName: string;
public parentTypeName: string;
public get fullName(): string {
return `${this.schema}.${this.name}`;
@@ -23,6 +25,8 @@ export class ObjectMetadataWrapper implements ObjectMetadata {
this.urn = from.urn;
this.name = from.name;
this.schema = from.schema;
this.parentName = from.parentName;
this.parentTypeName = from.parentTypeName;
}
public matches(other: ObjectMetadataWrapper): boolean {
@@ -32,7 +36,8 @@ export class ObjectMetadataWrapper implements ObjectMetadata {
return this.metadataType === other.metadataType
&& this.schema === other.schema
&& this.name === other.name;
&& this.name === other.name
&& this.parentName === other.parentName;
}
// custom sort : Table > View > Stored Procedures > Function