Struct snowflake_api::SnowflakeApi
source · pub struct SnowflakeApi { /* private fields */ }
Implementations§
source§impl SnowflakeApi
impl SnowflakeApi
pub fn with_password_auth( account_identifier: &str, warehouse: &str, database: Option<&str>, schema: Option<&str>, username: &str, role: Option<&str>, password: &str ) -> Result<Self, SnowflakeApiError>
pub fn with_certificate_auth( account_identifier: &str, warehouse: &str, database: Option<&str>, schema: Option<&str>, username: &str, role: Option<&str>, private_key_pem: &[u8] ) -> Result<Self, SnowflakeApiError>
pub async fn exec( &mut self, sql: &str ) -> Result<QueryResult, SnowflakeApiError>
pub async fn exec_response( &mut self, sql: &str ) -> Result<QueryResponse, SnowflakeApiError>
pub async fn exec_json(&mut self, sql: &str) -> Result<Value, SnowflakeApiError>
Auto Trait Implementations§
impl !RefUnwindSafe for SnowflakeApi
impl Send for SnowflakeApi
impl Sync for SnowflakeApi
impl Unpin for SnowflakeApi
impl !UnwindSafe for SnowflakeApi
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