pub struct SnowflakeClient {
pub key_pair: RS256KeyPair,
pub account: String,
pub user: String,
pub database: String,
pub warehouse: String,
pub role: Option<String>,
}
Expand description
Configuration for making connections to Snowflake
Fields§
§key_pair: RS256KeyPair
The RSA key pair used to sign the JWT.
There are many ways to generate or load this key pair depending on your deployment.
- You can generate one with
jwt_simple::algorithms::RS256KeyPair::generate
- You can load one from a PEM file with
jwt_simple::algorithms::RS256KeyPair::from_pem
- You can load one from a DER file with
jwt_simple::algorithms::RS256KeyPair::from_der
- In turn you might combine any of these with volume mounts, PVCs, Vault, Secrets Manager, etc.
account: String
The Snowflake account name. This should be two parts separated by a dot,
and it might look like AAA00000.us-east-1
user: String
The Snowflake user name.
database: String
The Snowflake database name. (This is required and it cannot be ""
)
warehouse: String
The Snowflake warehouse name. (This is required and it cannot be ""
)
role: Option<String>
The Snowflake role name. This is optional only if you have configured your user to have a default role.
Implementations§
Trait Implementations§
source§impl Clone for SnowflakeClient
impl Clone for SnowflakeClient
source§fn clone(&self) -> SnowflakeClient
fn clone(&self) -> SnowflakeClient
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for SnowflakeClient
impl Send for SnowflakeClient
impl Sync for SnowflakeClient
impl Unpin for SnowflakeClient
impl UnwindSafe for SnowflakeClient
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
Mutably borrows from an owned value. Read more