sqlload 0.70.0

SQL data loading tooling.
1
2
3
4
5
6
7
8
9
10
11
12
//! The staged file name extension.

use crate::config::models::FileFormat;
use crate::file_format::constants::{JSON_EXTENSION, PARQUET_EXTENSION};

/// The file name extension for `format`.
pub fn file_extension(format: FileFormat) -> &'static str {
    match format {
        FileFormat::Json => JSON_EXTENSION,
        FileFormat::Parquet => PARQUET_EXTENSION,
    }
}