#[non_exhaustive]pub struct MultiEntityRename {
pub new_name_pattern: String,
pub source_name_transformation: EntityNameTransformation,
/* private fields */
}Expand description
Options to configure rule type MultiEntityRename. The rule is used to rename multiple entities.
The rule filter field can refer to one or more entities.
The rule scope can be one of: Database, Schema, Table, Column, Constraint, Index, View, Function, Stored Procedure, Materialized View, Sequence, UDT
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.new_name_pattern: StringOptional. The pattern used to generate the new entity’s name. This pattern must include the characters ‘{name}’, which will be replaced with the name of the original entity. For example, the pattern ‘t_{name}’ for an entity name jobs would be converted to ‘t_jobs’.
If unspecified, the default value for this field is ‘{name}’
source_name_transformation: EntityNameTransformationOptional. Additional transformation that can be done on the source entity name before it is being used by the new_name_pattern, for example lower case. If no transformation is desired, use NO_TRANSFORMATION
Implementations§
Source§impl MultiEntityRename
impl MultiEntityRename
pub fn new() -> Self
Sourcepub fn set_new_name_pattern<T: Into<String>>(self, v: T) -> Self
pub fn set_new_name_pattern<T: Into<String>>(self, v: T) -> Self
Sets the value of new_name_pattern.
Sourcepub fn set_source_name_transformation<T: Into<EntityNameTransformation>>(
self,
v: T,
) -> Self
pub fn set_source_name_transformation<T: Into<EntityNameTransformation>>( self, v: T, ) -> Self
Sets the value of source_name_transformation.
Trait Implementations§
Source§impl Clone for MultiEntityRename
impl Clone for MultiEntityRename
Source§fn clone(&self) -> MultiEntityRename
fn clone(&self) -> MultiEntityRename
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more