pub const TABLE_SETTING_KEYS: &[&str] = &[
"write_strategy",
"unique_key",
"cursor_column",
"cursor_start",
"lookback",
"lookahead",
"lookback_from",
"append_cursor_inclusive",
"contract",
"on_schema_change",
"auto_widen",
"type_change_rebuild",
"batch_size",
"checks",
"engine",
"order_by",
"partition_by",
"primary_key",
"table_settings",
"header",
"header_row",
#[cfg(feature = "container-tests")]
"test_loader_route",
];
pub const SOURCE_ONLY_KEYS: &[&str] = &[
"kind",
"connection",
"description",
"destination",
"schema",
"include",
"exclude",
"new_tables",
"table_name",
"path",
"format",
"compression",
"csv",
"shape",
"record_column",
"destination_path",
"partition_columns",
"path_columns",
"unmatched_paths",
"constant_columns",
"copy_to_internal_stage",
"exclude_columns",
"skip_tables_with_columns",
"allow_columns",
"mask_key",
"tables",
"publication",
"slot",
"cdc_mode",
"deletes",
"batch_interval",
"warehouse",
"stage",
"max_text_size",
"max_binary_size",
"project",
"spreadsheet_id",
"ranges",
];
pub const PYTHON_SOURCE_KEYS: &[&str] = &[
"kind",
"connection",
"description",
"destination",
"schema",
"table_name",
"destination_path",
"exclude_columns",
"allow_columns",
"mask_key",
"shared_client",
"parallel_tables",
"tables",
];
pub const PYTHON_SETTING_KEYS: &[&str] = &["allow_empty", "state"];
pub const TABLE_ONLY_KEYS: &[&str] = &[
"description",
"name",
"destination_path",
"sql",
"columns",
"mask",
"exclude_columns",
"allow_columns",
"flatten",
];
pub const PROJECT_MARKER_KEYS: &[&str] = &["connections", "targets", "sources"];
pub const TABLE_PLACEHOLDER: &str = "{table}";
pub const WAREHOUSE_CONNECTION_KINDS: &[&str] = &[
"snowflake",
"databricks",
"bigquery",
"clickhouse",
"duckdb",
"motherduck",
"postgres",
];
pub const CLICKHOUSE_CONNECTION_KIND: &str = "clickhouse";
pub const FILES_CONNECTION_KINDS: &[&str] = &["s3", "filesystem"];
pub const DEFAULT_DESTINATION_PATH: &str = "{source}/{table}/";
pub const DEFAULT_MAX_FOOTER_READS: usize = 100;
pub const DEFAULT_POSTGRES_PORT: u16 = 5432;
pub const DEFAULT_CLICKHOUSE_USER: &str = "default";
pub const DEFAULT_TABLE_NAME: &str = "{source}__{table}";
pub const DEFAULT_FILES_TABLE_NAME: &str = "{source}";
pub const WHOLE_BATCH: &str = "none";
pub const STAGE_NAME_PARTS: usize = 3;
pub const MAX_POSTGRES_NAME_BYTES: usize = 63;
pub const MIN_BATCH_INTERVAL: std::time::Duration = std::time::Duration::from_secs(1);
pub const MAX_PERCENT: u8 = 100;
pub const MOTHERDUCK_PREFIX: &str = "md:";
pub const MOTHERDUCK_PREFIXES: &[&str] = &["md:", "motherduck:"];