add script to create consolidated db
This commit is contained in:
4
server/quoteDBs/createTable.sql
Normal file
4
server/quoteDBs/createTable.sql
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
CREATE TABLE IF NOT EXISTS "OptionQuotes"("Id" INTEGER,
|
||||||
|
"TimeStamp"DateTime DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
"Symbol" Text,
|
||||||
|
"Data" Text);
|
||||||
9
server/quoteDBs/fillBigDB.sh
Normal file
9
server/quoteDBs/fillBigDB.sh
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
rm consolidated.sqlite3
|
||||||
|
|
||||||
|
sqlite3 consolidated.sqlite3 < createTable.sql
|
||||||
|
|
||||||
|
ls quoteStore_202*.sqlite3 | while read db; do
|
||||||
|
sqlite3 $db '.dump OptionQuotes' | sqlite3 consolidated.sqlite3
|
||||||
|
done
|
||||||
Reference in New Issue
Block a user