Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Multiple truncate support for Postgres #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stellard
Copy link

This patch allows you to truncate multiple tables at once.

etl example

pre_process :truncate, :target => DATA_WAREHOUSE, :table => ['foo', 'bar']

This is necessary, at least in postgres because of foreign key constraints.

This results in

TRUNCATE TABLE foo,bar

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants