Revision 20
Added by Aaron Marcuse-Kubitza about 13 years ago
scripts/xml2db/test | ||
---|---|---|
2 | 2 |
# Tests xml2db |
3 | 3 |
|
4 | 4 |
selfDir="$(dirname -- "$0")" |
5 |
cd "$selfDir" |
|
5 | 6 |
|
6 | 7 |
export host=localhost user=vegbank password=vegbank database=vegbank |
7 | 8 |
|
8 |
cd "$selfDir" |
|
9 | 9 |
./xml2db <vb_plot_observation.xml |
scripts/xml2db/empty_db | ||
---|---|---|
1 |
#!/bin/bash |
|
2 |
# Resets vegbank db |
|
3 |
|
|
4 |
selfDir="$(dirname -- "$0")" |
|
5 |
cd "$selfDir" |
|
6 |
|
|
7 |
sudo -u postgres psql <vegbank.sql |
|
0 | 8 |
Also available in: Unified diff
Added empty_db script to reset the vegbank database after running xml2db/test in commit mode