# Template: Truncate and Load
# Clears the table before loading (full refresh)
# Copy to your pipeline directory as load.yaml

title: load_truncate_and_load
description: Truncate table then insert all records
version: "1.0.0"

# Target type (required)
type: postgres

table: my_table
schema: public
write_method: truncate_and_load
batch_size: 1000

database:
  url: ${DATABASE_URL:?DATABASE_URL is required}

# Warning: This deletes all existing data before loading!
