Various fixes, SQL injection prevention (escaping) and basic web-server. Also remove the fake data file of 7mb...
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
CREATE TABLE IF NOT EXISTS "OptionQuotes"("Id" INTEGER,
|
||||
"TimeStamp"DateTime DEFAULT CURRENT_TIMESTAMP,
|
||||
CREATE TABLE IF NOT EXISTS "OptionQuotes"( "TimeStamp"DateTime DEFAULT CURRENT_TIMESTAMP,
|
||||
"Symbol" Text,
|
||||
"Data" Text);
|
||||
|
||||
@@ -9,6 +9,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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user