sqlload 0.4.0

SQL data loading tooling. Pre-release, under development.
1
2
3
4
5
6
7
8
9
//! The table a `replace` builds before swapping it in.

use crate::write_sql::_helpers::promote::swap_table_name;
use crate::write_sql::models::TableName;

/// The swap table of the load staged in `staging`; dropped with the staging table if a load fails.
pub fn swap_table(staging: &TableName) -> TableName {
    swap_table_name(staging)
}