Permalink
Browse files

Added UP 2017 rolls dump code and file

  • Loading branch information...
raphael-susewind committed Jun 19, 2017
1 parent f253822 commit 0b2cf15b943ae828430486e80df7ce46609a1328
Showing with 146,652 additions and 0 deletions.
  1. +9 −0 uprolls2017/transform.pl
  2. +4 −0 uprolls2017/uprolls2017-a.sql
  3. +146,639 −0 uprolls2017/uprolls2017.csv
View
@@ -72,6 +72,15 @@
system("sqlite3 temp.sqlite '.dump uprolls2017' > uprolls2017-a.sql");
open (FILE, ">>uprolls2017-a.sql");
print FILE ".header on\n";
print FILE ".mode csv\n";
print FILE ".once uprolls2017/uprolls2017.csv\n";
print FILE "SELECT * FROM uprolls2017;\n";
close (FILE);
system("sqlite3 temp.sqlite '.dump upid' > uprolls2017-b.sql");
open (FILE, "uprolls2017-b.sql");
@@ -146640,3 +146640,7 @@ INSERT INTO "uprolls2017" VALUES(146636,403,274,914,9.4,39.66,25.45,28.51,11.31,
INSERT INTO "uprolls2017" VALUES(146637,403,282,1099,12.73,40.8,16.91,32.68,13.0,54.68,36.36,12.61,0.0,0.0,0.0,0.0,62.46,43.44,17.08,56.76,5.42,37.19,16.55,57.69,9.69,33.68,11.83,53.76,1.98,46.15,15.68,68.42,7.4,43.09,18.73,47.88,5.87,0.0,0.0);
INSERT INTO "uprolls2017" VALUES(146638,403,283,1128,13.2,44.34,37.11,38.75,25.34,58.31,35.0,14.4,0.0,0.0,0.0,0.0,64.55,46.25,42.44,59.17,4.29,39.8,21.82,69.04,9.09,38.02,14.5,53.93,1.53,54.86,32.23,53.33,6.02,50.57,18.98,47.45,9.19,0.0,0.0);
COMMIT;
.mode csv
.headers on
.once uprolls2017/uprolls2017.csv
SELECT * FROM uprolls2017;
Oops, something went wrong.

0 comments on commit 0b2cf15

Please sign in to comment.