dlt.destinations.impl.snowflake.utils
gen_copy_sql
def gen_copy_sql(
        file_url: str,
        qualified_table_name: str,
        loader_file_format: TLoaderFileFormat,
        is_case_sensitive: bool,
        stage_name: Optional[str] = None,
        stage_bucket_url: Optional[str] = None,
        local_stage_file_path: Optional[str] = None,
        staging_credentials: Optional[CredentialsConfiguration] = None,
        csv_format: Optional[CsvFormatConfiguration] = None,
        use_vectorized_scanner: Optional[bool] = False) -> str
Generates a Snowflake COPY command to load data from a file.
Arguments:
use_vectorized_scanner- Whether to use the vectorized scanner in COPY INTOfile_url- URL of the file to loadqualified_table_name- Fully qualified name of the target tableloader_file_format- Format of the source file (jsonl, parquet, csv)is_case_sensitive- Whether column matching should be case-sensitivestage_name- Optional name of a predefined Snowflake stagestage_bucket_url- Optional URL of the bucket containing the filelocal_stage_file_path- Path to use for local filesstaging_credentials- Optional credentials for accessing cloud storagecsv_format- Optional configuration for CSV format
Returns:
A SQL string containing the COPY command