pub struct DatabaseEntity {Show 18 fields
pub database: Option<DatabaseInstanceEntity>,
pub database_function: Option<FunctionEntity>,
pub database_package: Option<PackageEntity>,
pub entity_ddl: Option<Vec<EntityDdl>>,
pub entity_type: Option<String>,
pub issues: Option<Vec<EntityIssue>>,
pub mappings: Option<Vec<EntityMapping>>,
pub materialized_view: Option<MaterializedViewEntity>,
pub parent_entity: Option<String>,
pub schema: Option<SchemaEntity>,
pub sequence: Option<SequenceEntity>,
pub short_name: Option<String>,
pub stored_procedure: Option<StoredProcedureEntity>,
pub synonym: Option<SynonymEntity>,
pub table: Option<TableEntity>,
pub tree: Option<String>,
pub udt: Option<UDTEntity>,
pub view: Option<ViewEntity>,
}
Expand description
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.
This type is not used in any activity, and only used as part of another schema.
Fields§
§database: Option<DatabaseInstanceEntity>
Database.
database_function: Option<FunctionEntity>
Function.
database_package: Option<PackageEntity>
Package.
entity_ddl: Option<Vec<EntityDdl>>
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.
entity_type: Option<String>
The type of the database entity (table, view, index, …).
issues: Option<Vec<EntityIssue>>
Details about the various issues found for the entity.
mappings: Option<Vec<EntityMapping>>
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.
materialized_view: Option<MaterializedViewEntity>
Materialized view.
parent_entity: Option<String>
The full name of the parent entity (e.g. schema name).
schema: Option<SchemaEntity>
Schema.
sequence: Option<SequenceEntity>
Sequence.
short_name: Option<String>
The short name (e.g. table name) of the entity.
stored_procedure: Option<StoredProcedureEntity>
Stored procedure.
synonym: Option<SynonymEntity>
Synonym.
table: Option<TableEntity>
Table.
tree: Option<String>
The type of tree the entity belongs to.
udt: Option<UDTEntity>
UDT.
view: Option<ViewEntity>
View.
Trait Implementations§
Source§impl Clone for DatabaseEntity
impl Clone for DatabaseEntity
Source§fn clone(&self) -> DatabaseEntity
fn clone(&self) -> DatabaseEntity
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DatabaseEntity
impl Debug for DatabaseEntity
Source§impl Default for DatabaseEntity
impl Default for DatabaseEntity
Source§fn default() -> DatabaseEntity
fn default() -> DatabaseEntity
Source§impl<'de> Deserialize<'de> for DatabaseEntity
impl<'de> Deserialize<'de> for DatabaseEntity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for DatabaseEntity
impl Serialize for DatabaseEntity
impl Part for DatabaseEntity
Auto Trait Implementations§
impl Freeze for DatabaseEntity
impl RefUnwindSafe for DatabaseEntity
impl Send for DatabaseEntity
impl Sync for DatabaseEntity
impl Unpin for DatabaseEntity
impl UnwindSafe for DatabaseEntity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more