sqlload 0.4.0

SQL data loading tooling. Pre-release, under development.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/// Suffix of the staging table a load writes into before its strategy runs.
pub const STAGING_SUFFIX: &str = "__sqlload_staging";

/// Suffix (after the staging table's name) of the table a `replace` builds and swaps in.
pub const SWAP_SUFFIX: &str = "_swap";

/// Date cursors move back by whole days: a lookback is rounded up to days.
pub const SECONDS_PER_DAY: u64 = 86_400;

/// How cursor timestamps are written in literals (microseconds, no offset).
pub const CURSOR_TIMESTAMP_FORMAT: &str = "%Y-%m-%d %H:%M:%S%.6f";

/// Timestamps without an offset accepted on the command line.
pub const NAIVE_TIMESTAMP_FORMATS: &[&str] = &["%Y-%m-%dT%H:%M:%S%.f", "%Y-%m-%d %H:%M:%S%.f"];