Struct aws_sdk_glue::types::Database
source · #[non_exhaustive]pub struct Database {
pub name: String,
pub description: Option<String>,
pub location_uri: Option<String>,
pub parameters: Option<HashMap<String, String>>,
pub create_time: Option<DateTime>,
pub create_table_default_permissions: Option<Vec<PrincipalPermissions>>,
pub target_database: Option<DatabaseIdentifier>,
pub catalog_id: Option<String>,
pub federated_database: Option<FederatedDatabase>,
}
Expand description
The Database
object represents a logical grouping of tables that might reside in a Hive metastore or an RDBMS.
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.name: String
The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.
description: Option<String>
A description of the database.
location_uri: Option<String>
The location of the database (for example, an HDFS path).
parameters: Option<HashMap<String, String>>
These key-value pairs define parameters and properties of the database.
create_time: Option<DateTime>
The time at which the metadata database was created in the catalog.
create_table_default_permissions: Option<Vec<PrincipalPermissions>>
Creates a set of default permissions on the table for principals. Used by Lake Formation. Not used in the normal course of Glue operations.
target_database: Option<DatabaseIdentifier>
A DatabaseIdentifier
structure that describes a target database for resource linking.
catalog_id: Option<String>
The ID of the Data Catalog in which the database resides.
federated_database: Option<FederatedDatabase>
A FederatedDatabase
structure that references an entity outside the Glue Data Catalog.
Implementations§
source§impl Database
impl Database
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The name of the database. For Hive compatibility, this is folded to lowercase when it is stored.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the database.
sourcepub fn location_uri(&self) -> Option<&str>
pub fn location_uri(&self) -> Option<&str>
The location of the database (for example, an HDFS path).
sourcepub fn parameters(&self) -> Option<&HashMap<String, String>>
pub fn parameters(&self) -> Option<&HashMap<String, String>>
These key-value pairs define parameters and properties of the database.
sourcepub fn create_time(&self) -> Option<&DateTime>
pub fn create_time(&self) -> Option<&DateTime>
The time at which the metadata database was created in the catalog.
sourcepub fn create_table_default_permissions(&self) -> &[PrincipalPermissions]
pub fn create_table_default_permissions(&self) -> &[PrincipalPermissions]
Creates a set of default permissions on the table for principals. Used by Lake Formation. Not used in the normal course of Glue operations.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .create_table_default_permissions.is_none()
.
sourcepub fn target_database(&self) -> Option<&DatabaseIdentifier>
pub fn target_database(&self) -> Option<&DatabaseIdentifier>
A DatabaseIdentifier
structure that describes a target database for resource linking.
sourcepub fn catalog_id(&self) -> Option<&str>
pub fn catalog_id(&self) -> Option<&str>
The ID of the Data Catalog in which the database resides.
sourcepub fn federated_database(&self) -> Option<&FederatedDatabase>
pub fn federated_database(&self) -> Option<&FederatedDatabase>
A FederatedDatabase
structure that references an entity outside the Glue Data Catalog.
Trait Implementations§
source§impl PartialEq for Database
impl PartialEq for Database
impl StructuralPartialEq for Database
Auto Trait Implementations§
impl Freeze for Database
impl RefUnwindSafe for Database
impl Send for Database
impl Sync for Database
impl Unpin for Database
impl UnwindSafe for Database
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> 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