sqlload 0.3.0

SQL data loading tooling. Pre-release, under development.
Documentation
1
2
3
4
5
6
7
8
9
10
//! A name as the warehouse stores it.

use crate::column_types::models::Warehouse;
use crate::write_sql::_helpers::identifiers::quote;

/// `name` as the warehouse reports it in its information schema (upper case for plain names on Snowflake).
pub fn stored_name(name: &str, warehouse: Warehouse) -> String {
    let quoted = quote(name, warehouse);
    quoted[1..quoted.len() - 1].replace("\"\"", "\"")
}