Skip to main content

DuckDB_Connection.bulk_load

bulk_loadtabletable_nameif_existstemporary

Documentation

Upload a Table to a new table in the database in the current schema.

Arguments:

  • table: The input table to upload.
  • table_name: The name of the table to create.
  • if_exists: What action to take if the table already exists. Defaults to raising a Table_Already_Exists error.
    • Raise_Error - a Table_Already_Exists error will be raised.
    • Drop_Table - the existing table will be dropped before creating the new one.
    • Truncate_Table - the existing table will be truncated before loading data into it.
    • Append_To_Table - data will be appended to the existing table.
  • temporary: If set to True, the created table will be temporary. Defaults to False.

Returns

A DB_Table representing the created table.