Skip to content

Commit 732ea0d

Browse files
committed
add connection close reminders
A reminder comment of the limitation/caveat to close the connection for dummkopfs like myself who copy the example code
1 parent 841f5ac commit 732ea0d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,8 @@ function doRead(cb) {
212212
// recurse to read next record
213213
return doRead(cb)
214214
} else {
215+
// only query? be sure to close the connection
216+
//connection.close();
215217
// we are done
216218
return cb();
217219
}
@@ -244,6 +246,8 @@ function doInsert(stmt, records, cb) {
244246
doInsert(stmt, records, cb);
245247
});
246248
} else {
249+
// only query? be sure to close the connection
250+
//connection.close();
247251
// we are done
248252
return cb();
249253
}

0 commit comments

Comments
 (0)