Project

General

Profile

1 12212 aaronmk
#!/bin/bash -e
2
# syncs validations queries with the DB
3
. "$(dirname "${BASH_SOURCE[0]}")"/file.pg.sql.run
4
5
if self_not_included; then
6
7
func_override export___schema.pg.sql.run
8
export_() # usage: rm=1 .../file.run export_
9 12214 aaronmk
{
10
	echo_func
11
	#need explicit schema so matching tables from other schemas are not included
12 12224 aaronmk
	export___schema.pg.sql.run --table="\"$schema\"._[[:alpha:]]+_\d*" "$@"
13 12214 aaronmk
}
14 12212 aaronmk
15
fi