1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-05 01:26:18 +00:00

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

View File

@ -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`