forked from factly/janaganana
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdb_install.sh
executable file
·19 lines (17 loc) · 1.01 KB
/
db_install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
# dbname="factlyin"
# username="factlyin"
# wherecond="tgs"
# psql $dbname $username << EOF
# SELECT * FROM test WHERE col_name = '$wherecond';
# EOF
cat ./sql/geography.sql | psql "postgresql://factlyin:factlyin@ci-db/factlyin"
cat ./sql/age_area_sex.sql | psql "postgresql://factlyin:factlyin@ci-db/factlyin"
cat ./sql/pca_area_sex_literecy_type.sql | psql "postgresql://factlyin:factlyin@ci-db/factlyin"
cat ./sql/religion_pca_area_sex.sql | psql "postgresql://factlyin:factlyin@ci-db/factlyin"
cat ./sql/education_area_sex.sql | psql "postgresql://factlyin:factlyin@ci-db/factlyin"
cat ./sql/maritalstatus_area_sex.sql | psql "postgresql://factlyin:factlyin@ci-db/factlyin"
cat ./sql/population_area.sql | psql "postgresql://factlyin:factlyin@ci-db/factlyin"
cat ./sql/rural_population.sql | psql "postgresql://factlyin:factlyin@ci-db/factlyin"
cat ./sql/workers_area_sex.sql | psql "postgresql://factlyin:factlyin@ci-db/factlyin"
cat ./sql/telangana_data_split.sql | psql "postgresql://factlyin:factlyin@ci-db/factlyin"