sqlload 0.32.0

SQL data loading tooling. Pre-release, under development.
1
2
3
4
5
6
7
8
//! Which warehouse sources bind their text cursor bounds.

use crate::loader::constants::ODBC_SOURCE;

/// Whether a warehouse source of `system` takes its text cursor bounds as bound parameters (`?`) rather than literals: an ODBC source, whose database's string-literal rules SQLLoad can't know (some read a backslash as an escape, some don't).
pub fn source_binds_text(system: &str) -> bool {
    system == ODBC_SOURCE
}