Add tool to package gtfs file from database
parent
aa38edcab6
commit
b47b66288f
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
dolt sql -q "show tables;" | grep "| [a-z]" | sed -e 's/[| ]//g' > /tmp/tables_gtfs.txt
|
||||
for table in `cat /tmp/tables_gtfs.txt`; do dolt table export $table $table.csv; mv $table.csv $table.txt ; done
|
||||
zip -9 $1 *.txt
|
Loading…
Reference in New Issue