diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-11-17 13:39:16 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2021-11-17 19:05:15 +0100 |
commit | 327acfe1124cdafc5eb460a039222a160f867ba3 (patch) | |
tree | 20dc04fc3ed170881af2caf9ba0ae58a62f6020e /connect-better-sqlite3.js | |
parent | 7b5ce7d3949755c12b663531ab5d0b3d3051de34 (diff) | |
download | server-327acfe1124cdafc5eb460a039222a160f867ba3.tar.gz |
Simplify URL for playing games.
Diffstat (limited to 'connect-better-sqlite3.js')
-rw-r--r-- | connect-better-sqlite3.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/connect-better-sqlite3.js b/connect-better-sqlite3.js index 008114b..6574346 100644 --- a/connect-better-sqlite3.js +++ b/connect-better-sqlite3.js @@ -31,7 +31,7 @@ module.exports = function (session) { let db = new SQLite(db_path, options.mode); db.pragma("journal_mode = WAL"); db.pragma("synchronous = OFF"); - db.exec("CREATE TABLE IF NOT EXISTS "+table+" (sid PRIMARY KEY, expires INTEGER, sess TEXT)"); + db.exec("CREATE TABLE IF NOT EXISTS "+table+" (sid PRIMARY KEY, expires INTEGER, sess TEXT) WITHOUT ROWID"); db.exec("DELETE FROM "+table+" WHERE "+now()+" > expires"); db.exec("VACUUM"); db.exec("PRAGMA wal_checkpoint(TRUNCATE)"); |