Project

General

Profile

« Previous | Next » 

Revision 10781

added lib/runscripts/data.pg.sql.run (analogous to schema.pg.sql.run for data-only SQL scripts)

View differences:

lib/runscripts/data.pg.sql.run
1
#!/bin/bash -e
2
. "$(dirname "${BASH_SOURCE[0]}")"/file.pg.sql.run
3

  
4
# syncs a data-only SQL script with the DB
5

  
6
if self_not_included; then
7

  
8
func_override export___file.pg.sql.run
9
export_() # usage: rm=1 .../file.run export_
10
{ echo_func; data=1 export___file.pg.sql.run; }
11

  
12
fi
0 13

  

Also available in: Unified diff