mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-15 22:34:51 +00:00
Add logging utility
This commit is contained in:
parent
71c02e57c0
commit
2d229e2159
@ -232,6 +232,16 @@ $tw.SqlFunctions = function(options) {
|
|||||||
}
|
}
|
||||||
statementEachShadowPlusTiddlers.reset();
|
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);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
})();
|
})();
|
||||||
|
@ -77,6 +77,10 @@ $tw.Wiki = function(options) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
this.logTables = function() {
|
||||||
|
self.sqlFunctions.sqlLogTables();
|
||||||
|
}
|
||||||
|
|
||||||
this.addIndexer = function(indexer,name) {
|
this.addIndexer = function(indexer,name) {
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user