Various fixes, SQL injection prevention (escaping) and basic web-server. Also remove the fake data file of 7mb...

This commit is contained in:
Joe Tretter
2020-04-22 21:10:21 -05:00
parent 886467327c
commit 07ceb58dda
7 changed files with 39 additions and 11 deletions

View File

@@ -6,6 +6,9 @@ ls quoteStore_202*.sqlite3.gz | while read db; do
echo unpacking $db
gzip -dc $db >/tmp/xx.sqlite3
echo processing...
sqlite3 /tmp/xx.sqlite3 'create table tmp as select timestamp,symbol,data from OptionQuotes;'
sqlite3 /tmp/xx.sqlite3 'drop table OptionQuotes;'
sqlite3 /tmp/xx.sqlite3 'alter table tmp rename to OptionQuotes;'
sqlite3 /tmp/xx.sqlite3 '.dump OptionQuotes' | sqlite3 consolidated.sqlite3
echo deleting...
rm /tmp/xx.sqlite3