snowflakedb-rs 1.1.6

A lightweight, comprehensive and familiar database driver for the SnowflakeDB written natively in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use serde::Serialize;

#[cfg(feature = "auth-cert")]
pub(crate) mod cert_auth;

// Snowflake Auth Strategies can be found here:
// https://github.com/snowflakedb/gosnowflake/blob/master/auth.go#L139
#[derive(Serialize, Clone, Debug)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum AuthStrategy {
    Password(String),
    #[cfg(feature = "auth-cert")]
    Certificate(String),
    // TODO: Add more...
}