remove symbol friendlyname translation; implemented

on DB.
This commit is contained in:
Joe Tretter
2020-06-10 14:29:15 -05:00
parent 9b40f3d281
commit 05a55f6434
3 changed files with 9 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ 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 "create table tmp as select timestamp,replace(replace(symbol,'$',''),'.X','') 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

View File

@@ -13,7 +13,8 @@ find . -maxdepth 1 -name '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 "create table tmp as select timestamp,replace(replace(symbol,'$',''),'.X','') 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