Use a temporary database so that multiple wiki stores can coexist

This commit is contained in:
jeremy@jermolene.com
2023-07-06 11:54:03 +01:00
parent 2d229e2159
commit 9e190a46db
@@ -13,7 +13,7 @@ This file is spliced into the HTML file to be executed before the boot kernel ha
$tw.SqlFunctions = function(options) {
options = options || {};
var self = this;
this.db = new $tw.sqlite3.oo1.DB("/tiddlywiki.sqlite3","c");
this.db = new $tw.sqlite3.oo1.DB("","c");
// Setup custom collation to precisely match existing sort orders
// Create field with `title TEXT NOT NULL COLLATE custom_collation`
// Use it like `... order by shadow collate custom_collation`