List of commits:
Subject Hash Author Date (UTC)
Fix for new column names. 5791d77e19585c494e51c6062ab45440e5af0903 Luigi Bai 2020-09-06 20:44:50
Add headers 32cb7264c06b28dc0404b715f24fd2d82b66633b Luigi Bai 2020-09-06 20:44:29
Have a working version of xfer - now transfers data to MS SQL Server from SQLITE3. 428e493bcc5b7f718a741db046d08905f47d0f1c Luigi Bai 2020-09-05 22:11:55
Stupid MS SQL Server assumes case insensitive collation for text/char columns. Who does that? 2700846d8c1233d27664fb74b582293ddb8cb32a Luigi Bai 2020-09-05 21:11:17
Fixed MS schema - 4096 too big for varchar. ca3870f7e244d83e58d74c7f231baacbc19ba8fa Luigi Bai 2020-09-04 17:04:05
Remove interstitial console.log 19481f6692d9f93e75aa173bee9716261ef54db0 Luigi Bai 2020-09-04 12:07:33
Added license/copyright info. Added shim for Promise. Rewrote xferData with await and shim. 3930998d32fb2a19239e63b1b07bf1804c7ea46e Luigi Bai 2020-09-04 12:04:32
Fixed a typo. Ugh. 64718362e042d4a987d3161f999de087edb7bc8a Luigi Bai 2020-09-04 03:59:37
Must have an example of the creds.js file to learn from. 13d0e75c21bf8194c53e148e37cc6f85d8152de3 Luigi Bai 2020-09-04 03:59:16
Transfer local data to cloud based MS SQL-Server database. 8035b6dac5ce05ced62474409ab46ca490a6db4a Luigi Bai 2020-09-04 03:50:32
Learned that package-lock.json should also be committed. 20222232bd2e5388b76d3330e6f695b5aacfe393 Luigi Bai 2020-09-03 11:04:05
Fixed SPDX license expression. c894ba842750ff63035c850095ac93399495f4bc Luigi Bai 2020-09-03 11:01:27
Updated README. Added .gitignore, node/npm package.json, and the schema definitions for the data stores. a5baa30d1360514e217250737abf3a4518ab6a65 Luigi Bai 2020-09-02 17:35:09
Initial commit f67ef5b180d66c95e84ee5c5aa0a893376afa5c4 datajams-lbai 2020-09-02 02:28:52
Commit 5791d77e19585c494e51c6062ab45440e5af0903 - Fix for new column names.
Author: Luigi Bai
Author date (UTC): 2020-09-06 20:44
Committer name: Luigi Bai
Committer date (UTC): 2020-09-06 20:44
Parent(s): 32cb7264c06b28dc0404b715f24fd2d82b66633b
Signing key:
Tree: 40c670e0a51246094493b2a912e2d15cae094316
File Lines added Lines deleted
lib/sqlDAO.js 12 6
File lib/sqlDAO.js changed (mode: 100644) (index c510933..3551a66)
... ... let DAO = class {
23 23 constructor() { constructor() {
24 24 this.stmts = {}; this.stmts = {};
25 25 }; };
26
27 finalize() {
28 for (var s in this.stmts) {
29 console.log("Closing statement ", s);
30 this.stmts[s].finalize();
31 }
32 };
26 33
27 34 reportErr(e) { reportErr(e) {
28 35 console.error(typeof this.dao, e); console.error(typeof this.dao, e);
 
... ... module.exports = {
103 110 super(); super();
104 111 this.stmts.insert = this.prepare( this.stmts.insert = this.prepare(
105 112 database, database,
106 "INSERT INTO docket (precinct, place, dateTime, URL) \
107 VALUES ($pct, $plc, $dt, $url)"
113 "INSERT INTO docket (precinct, place, docket_dateTime, URL) VALUES ($pct, $plc, $dt, $url)"
108 114 ); );
109 115 }; };
110 116
 
... ... VALUES ($pct, $plc, $dt, $url)"
114 120 super(); super();
115 121 this.stmts.insert = this.prepare( this.stmts.insert = this.prepare(
116 122 database, database,
117 "INSERT INTO docketedCases (precinct, place, dateTIme, casenumber, claim) VALUES ($pct, $plc, $dt, $cnum, $claim)"
123 "INSERT INTO docketedCases (precinct, place, docket_dateTIme, casenumber, claim) VALUES ($pct, $plc, $dt, $cnum, $claim)"
118 124 ); );
119 125 }; };
120 126 }, },
 
... ... VALUES ($pct, $plc, $dt, $url)"
123 129 super(); super();
124 130 this.stmts.insert = this.prepare( this.stmts.insert = this.prepare(
125 131 database, database,
126 "INSERT INTO cases (casenumber, caseURL) VALUES ($cnum, $curl)"
132 "INSERT INTO cases (casenumber, case_URL) VALUES ($cnum, $curl)"
127 133 ); );
128 134 }; };
129 135 }, },
 
... ... VALUES ($pct, $plc, $dt, $url)"
132 138 super(); super();
133 139 this.stmts.insert = this.prepare( this.stmts.insert = this.prepare(
134 140 database, database,
135 "INSERT INTO party (casenumber, role, name) VALUES ($cnum, $role, $name)"
141 "INSERT INTO party (casenumber, party_role, party_name) VALUES ($cnum, $role, $name)"
136 142 ); );
137 143 }; };
138 144 }, },
 
... ... VALUES ($pct, $plc, $dt, $url)"
141 147 super(); super();
142 148 this.stmts.insert = this.prepare( this.stmts.insert = this.prepare(
143 149 database, database,
144 "INSERT INTO events (casenumber, description, dateAdded) VALUES ($cnum, $desc, $date)"
150 "INSERT INTO events (casenumber, eventDescription, dateAdded) VALUES ($cnum, $desc, $date)"
145 151 ); );
146 152 }; };
147 153 } }
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/datajams-lbai/datajams-evictions

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/datajams-lbai/datajams-evictions

Clone this repository using git:
git clone git://git.rocketgit.com/user/datajams-lbai/datajams-evictions

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main