pub struct BigTableDbSettings {Show 13 fields
pub table_name: String,
pub app_profile_id: String,
pub router_family: String,
pub message_family: String,
pub message_topic_family: String,
pub database_pool_max_size: Option<u32>,
pub database_pool_create_timeout: Option<Duration>,
pub database_pool_wait_timeout: Option<Duration>,
pub database_pool_recycle_timeout: Option<Duration>,
pub database_pool_connection_ttl: Option<Duration>,
pub database_pool_max_idle: Option<Duration>,
pub route_to_leader: bool,
pub retry_count: usize,
}
Expand description
The settings for accessing the BigTable contents.
Fields§
§table_name: String
The Table name matches the GRPC template for table paths.
e.g. projects/{projectid}/instances/{instanceid}/tables/{tablename}
NOTE There is no leading /
By default, this (may?) use the *
variant which translates to
projects/*/instances/*/tables/*
which searches all data stored in
bigtable.
app_profile_id: String
Routing replication profile id.
Should be used everywhere we set table_name
when creating requests
router_family: String
§message_family: String
§message_topic_family: String
§database_pool_max_size: Option<u32>
§database_pool_create_timeout: Option<Duration>
Max time (in seconds) to wait to create a new connection to bigtable
database_pool_wait_timeout: Option<Duration>
Max time (in seconds) to wait for a socket to become available
database_pool_recycle_timeout: Option<Duration>
Max time(in seconds) to recycle a connection
database_pool_connection_ttl: Option<Duration>
Max time (in seconds) a connection should live
database_pool_max_idle: Option<Duration>
Max idle time(in seconds) for a connection
route_to_leader: bool
Include route to leader header in metadata
retry_count: usize
Number of times to retry a GRPC function
Implementations§
Source§impl BigTableDbSettings
impl BigTableDbSettings
pub fn metadata(&self) -> Result<Metadata, BigTableError>
pub fn health_metadata(&self) -> Result<Metadata, BigTableError>
pub fn admin_metadata(&self) -> Result<Metadata, BigTableError>
pub fn get_instance_name(&self) -> Result<String, BigTableError>
Trait Implementations§
Source§impl Clone for BigTableDbSettings
impl Clone for BigTableDbSettings
Source§fn clone(&self) -> BigTableDbSettings
fn clone(&self) -> BigTableDbSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more