Closed coco98 closed 6 years ago
When setting up triggers for my tables I want to do something like this:
psql -U admin -d hasuradb < $(init.sh table1,table2,table3)
init.sh is a bash script that takes multiple arguments or a comma separated list of tables names and generates the DROP IF EXISTS CREATE TRIGGER kind of sql that I can pipe into psql.
init.sh
DROP IF EXISTS CREATE TRIGGER
This is very important as the schema evolves.
When setting up triggers for my tables I want to do something like this:
psql -U admin -d hasuradb < $(init.sh table1,table2,table3)
init.sh
is a bash script that takes multiple arguments or a comma separated list of tables names and generates theDROP IF EXISTS CREATE TRIGGER
kind of sql that I can pipe into psql.This is very important as the schema evolves.