root/trunk/lib/runscripts/extract.run @ 13591
1 | 11436 | aaronmk | #!/bin/bash -e
|
---|---|---|---|
2 | . "$(dirname "${BASH_SOURCE[0]}")"/import.run "$@" |
||
3 | .rel ../sh/local.sh |
||
4 | |||
5 | if self_not_included; then |
||
6 | |||
7 | 11461 | aaronmk | export extract_view="${top_filename%.csv}" |
8 | |||
9 | 11436 | aaronmk | export_()
|
10 | {
|
||
11 | 12779 | aaronmk | begin_target; deferred_check_target_exists
|
12 | 11461 | aaronmk | table="$extract_view" to_top_file pg_export |
13 | 11436 | aaronmk | }
|
14 | |||
15 | 12968 | aaronmk | export_sample() { begin_target; n=100 with_rm export_; } |
16 | 11574 | aaronmk | |
17 | 11436 | aaronmk | fi
|