Database Migration v1 API - Class DatabaseEntity (2.2.0)

public sealed class DatabaseEntity : IMessage<DatabaseEntity>, IEquatable<DatabaseEntity>, IDeepCloneable<DatabaseEntity>, IBufferMessage, IMessage

Reference documentation and code samples for the Database Migration v1 API class DatabaseEntity.

The base entity type for all the database related entities. The message contains the entity name, the name of its parent, the entity type, and the specific details per entity type.

Inheritance

object > DatabaseEntity

Namespace

Google.Cloud.CloudDms.V1

Assembly

Google.Cloud.CloudDms.V1.dll

Constructors

DatabaseEntity()

public DatabaseEntity()

DatabaseEntity(DatabaseEntity)

public DatabaseEntity(DatabaseEntity other)
Parameter
NameDescription
otherDatabaseEntity

Properties

Database

public DatabaseInstanceEntity Database { get; set; }

Database.

Property Value
TypeDescription
DatabaseInstanceEntity

DatabaseFunction

public FunctionEntity DatabaseFunction { get; set; }

Function.

Property Value
TypeDescription
FunctionEntity

DatabasePackage

public PackageEntity DatabasePackage { get; set; }

Package.

Property Value
TypeDescription
PackageEntity

EntityBodyCase

public DatabaseEntity.EntityBodyOneofCase EntityBodyCase { get; }
Property Value
TypeDescription
DatabaseEntityEntityBodyOneofCase

EntityDdl

public RepeatedField<EntityDdl> EntityDdl { get; }

Details about the entity DDL script. Multiple DDL scripts are provided for child entities such as a table entity will have one DDL for the table with additional DDLs for each index, constraint and such.

Property Value
TypeDescription
RepeatedFieldEntityDdl

EntityType

public DatabaseEntityType EntityType { get; set; }

The type of the database entity (table, view, index, ...).

Property Value
TypeDescription
DatabaseEntityType

Issues

public RepeatedField<EntityIssue> Issues { get; }

Details about the various issues found for the entity.

Property Value
TypeDescription
RepeatedFieldEntityIssue

Mappings

public RepeatedField<EntityMapping> Mappings { get; }

Details about entity mappings. For source tree entities, this holds the draft entities which were generated by the mapping rules. For draft tree entities, this holds the source entities which were converted to form the draft entity. Destination entities will have no mapping details.

Property Value
TypeDescription
RepeatedFieldEntityMapping

MaterializedView

public MaterializedViewEntity MaterializedView { get; set; }

Materialized view.

Property Value
TypeDescription
MaterializedViewEntity

ParentEntity

public string ParentEntity { get; set; }

The full name of the parent entity (e.g. schema name).

Property Value
TypeDescription
string

Schema

public SchemaEntity Schema { get; set; }

Schema.

Property Value
TypeDescription
SchemaEntity

Sequence

public SequenceEntity Sequence { get; set; }

Sequence.

Property Value
TypeDescription
SequenceEntity

ShortName

public string ShortName { get; set; }

The short name (e.g. table name) of the entity.

Property Value
TypeDescription
string

StoredProcedure

public StoredProcedureEntity StoredProcedure { get; set; }

Stored procedure.

Property Value
TypeDescription
StoredProcedureEntity

Synonym

public SynonymEntity Synonym { get; set; }

Synonym.

Property Value
TypeDescription
SynonymEntity

Table

public TableEntity Table { get; set; }

Table.

Property Value
TypeDescription
TableEntity

Tree

public DatabaseEntity.Types.TreeType Tree { get; set; }

The type of tree the entity belongs to.

Property Value
TypeDescription
DatabaseEntityTypesTreeType

Udt

public UDTEntity Udt { get; set; }

UDT.

Property Value
TypeDescription
UDTEntity

View

public ViewEntity View { get; set; }

View.

Property Value
TypeDescription
ViewEntity