1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-27 22:58:19 +00:00

Add logging utility

This commit is contained in:
jeremy@jermolene.com 2023-07-06 11:53:41 +01:00
parent 71c02e57c0
commit 2d229e2159
2 changed files with 14 additions and 0 deletions

View File

@ -232,6 +232,16 @@ $tw.SqlFunctions = function(options) {
}
statementEachShadowPlusTiddlers.reset();
};
var statementLogTables = self.db.prepare("select title, shadow, meta, text from tiddlers order by title,shadow");
this.sqlLogTables = function() {
let resultRows = [];
while(statementLogTables.step()) {
var row = statementLogTables.get({});
resultRows.push(row);
}
statementLogTables.reset();
console.log(resultRows);
};
};
})();

View File

@ -77,6 +77,10 @@ $tw.Wiki = function(options) {
}
};
this.logTables = function() {
self.sqlFunctions.sqlLogTables();
}
this.addIndexer = function(indexer,name) {
return;
};