mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-30 15:46:41 +00:00
More efficient syncing
Thank you @PotOfCoffee2Go I ended up taking some of your code from #8101 to get this up and running. There's still some stuff missing (like the tests!) but it gets things moving.
This commit is contained in:
@@ -306,11 +306,25 @@ SqlTiddlerStore.prototype.getBagTiddlers = function(bag_name) {
|
||||
return this.sqlTiddlerDatabase.getBagTiddlers(bag_name);
|
||||
};
|
||||
|
||||
/*
|
||||
Get the tiddler_id of the newest tiddler in a bag. Returns null for bags that do not exist
|
||||
*/
|
||||
SqlTiddlerStore.prototype.getBagLastTiddlerId = function(bag_name) {
|
||||
return this.sqlTiddlerDatabase.getBagLastTiddlerId(bag_name);
|
||||
};
|
||||
|
||||
/*
|
||||
Get the titles of the tiddlers in a recipe as {title:,bag_name:}. Returns null for recipes that do not exist
|
||||
*/
|
||||
SqlTiddlerStore.prototype.getRecipeTiddlers = function(recipe_name) {
|
||||
return this.sqlTiddlerDatabase.getRecipeTiddlers(recipe_name);
|
||||
SqlTiddlerStore.prototype.getRecipeTiddlers = function(recipe_name,options) {
|
||||
return this.sqlTiddlerDatabase.getRecipeTiddlers(recipe_name,options);
|
||||
};
|
||||
|
||||
/*
|
||||
Get the tiddler_id of the newest tiddler in a recipe. Returns null for recipes that do not exist
|
||||
*/
|
||||
SqlTiddlerStore.prototype.getRecipeLastTiddlerId = function(recipe_name) {
|
||||
return this.sqlTiddlerDatabase.getRecipeLastTiddlerId(recipe_name);
|
||||
};
|
||||
|
||||
SqlTiddlerStore.prototype.deleteAllTiddlersInBag = function(bag_name) {
|
||||
|
||||
Reference in New Issue
Block a user