pub struct SnowflakeClient { /* private fields */ }Expand description
A clean-room Snowflake client bound to one account/user configuration.
Implementations§
Source§impl SnowflakeClient
impl SnowflakeClient
Sourcepub fn new(config: SnowflakeClientConfig) -> Result<Self>
pub fn new(config: SnowflakeClientConfig) -> Result<Self>
Builds a client. Cheap — resolves the API host; does not authenticate.
§Errors
Error::Protocol if the resolved host is invalid, or a transport build
failure.
Sourcepub fn config(&self) -> &SnowflakeClientConfig
pub fn config(&self) -> &SnowflakeClientConfig
The configuration this client was built with.
Sourcepub async fn create_session(&self) -> Result<SnowflakeSession>
pub async fn create_session(&self) -> Result<SnowflakeSession>
Authenticates and returns a live session. For external-browser SSO this opens a browser once.
§Errors
Error::Auth when the SSO flow fails, or a transport/server error.
Auto Trait Implementations§
impl !RefUnwindSafe for SnowflakeClient
impl !UnwindSafe for SnowflakeClient
impl Freeze for SnowflakeClient
impl Send for SnowflakeClient
impl Sync for SnowflakeClient
impl Unpin for SnowflakeClient
impl UnsafeUnpin 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