From 732ea0de84963020cea7ec859f75717dd03707ee Mon Sep 17 00:00:00 2001 From: Nick Oliver Date: Fri, 2 Jan 2015 17:05:31 -0700 Subject: [PATCH] add connection close reminders A reminder comment of the limitation/caveat to close the connection for dummkopfs like myself who copy the example code --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 8690e33..4a1cdd6 100644 --- a/README.md +++ b/README.md @@ -212,6 +212,8 @@ function doRead(cb) { // recurse to read next record return doRead(cb) } else { + // only query? be sure to close the connection + //connection.close(); // we are done return cb(); } @@ -244,6 +246,8 @@ function doInsert(stmt, records, cb) { doInsert(stmt, records, cb); }); } else { + // only query? be sure to close the connection + //connection.close(); // we are done return cb(); }