summaryrefslogtreecommitdiff
path: root/backend/node
authorMichael Krelin <hacker@klever.net>2014-06-29 19:57:38 (UTC)
committer Michael Krelin <hacker@klever.net>2014-06-29 20:48:23 (UTC)
commitce34b3d32a9ae04260f95d6ade4f2d0de43daa8a (patch) (side-by-side diff)
treee06c91d6da51a27043c75d6469805f818b8b71a0 /backend/node
parentd21898d430781387bc128f83e6f8aead1149a4e5 (diff)
downloadclipperz-ce34b3d32a9ae04260f95d6ade4f2d0de43daa8a.zip
clipperz-ce34b3d32a9ae04260f95d6ade4f2d0de43daa8a.tar.gz
clipperz-ce34b3d32a9ae04260f95d6ade4f2d0de43daa8a.tar.bz2
change 'DELETE' to 'TRUNCATE', because why not.
Diffstat (limited to 'backend/node') (more/less context) (show whitespace changes)
-rw-r--r--backend/node/src/clipperz.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/node/src/clipperz.js b/backend/node/src/clipperz.js
index 5b4df0a..37b9cae 100644
--- a/backend/node/src/clipperz.js
+++ b/backend/node/src/clipperz.js
@@ -30,25 +30,25 @@ function clipperz_store(PG) {
PG.Q("INSERT INTO clipperz.thesession (s_id,s_data) VALUES ($1,$2)",[sid,d],cb);
});
};
rv.prototype.destroy = function(sid,cb) { PG.Q(
"DELETE FROM clipperz.thesession WHERE s_id=$1",[sid],cb
) };
rv.prototype.length = function(cb) { PG.Q(
"SELECT count(*) AS c FROM clipperz.thesession", function(e,r) {
cb(e,e?null:r.rows[0].c);
}
) };
rv.prototype.clear = function(cb) { PQ.Q(
- "DELETE FROM clipperz.thesession", cb
+ "TRUNCATE clipperz.thesession", cb
) };
rv.prototype.__proto__ = express_store.prototype;
return rv;
}
var srp_g = BIGNUM(2);
var srp_n = BIGNUM("115b8b692e0e045692cf280b436735c77a5a9e8a9e7ed56c965f87db5b2a2ece3",16);
var n123 = '112233445566778899aabbccddeeff00112233445566778899aabbccddeeff00';
var CLIPPERZ = module.exports = function(CONFIG) {