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.