-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·41 lines (32 loc) · 989 Bytes
/
run.sh
File metadata and controls
executable file
·41 lines (32 loc) · 989 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
#
# description: Generate SQL Exports
#
# author: Peter Schmalfeldt <me@peterschmalfeldt.com>
# Clean Old Files
rm -fr ./sql/*.sql
rm -fr ./sql/*.sql.gz
# Generate Agency SQL and Compress
./bin/cli.js parse -m Agency
gzip ./sql/agency.sql
# Generate AnnualDeaths SQL and Compress
./bin/cli.js parse -m AnnualDeaths
gzip ./sql/annual_deaths.sql
# Generate AnnualOfficerDeaths SQL and Compress
./bin/cli.js parse -m AnnualOfficerDeaths
gzip ./sql/annual_officer_deaths.sql
# Generate Characteristics SQL and Compress
./bin/cli.js parse -m Characteristics
gzip ./sql/characteristics.sql
# Generate Crimes SQL and Compress
./bin/cli.js parse -m Crimes
gzip ./sql/crimes.sql
# Generate Demographics SQL and Compress
./bin/cli.js parse -m Demographics
gzip ./sql/demographics.sql
# Generate FirearmLaws SQL and Compress
./bin/cli.js parse -m FirearmLaws
gzip ./sql/firearm_laws.sql
# Generate Gunshots SQL and Compress
./bin/cli.js parse -m Gunshots
gzip ./sql/gunshots.sql