El sábado, 30 de mayo de 2015, 14:07:00 (UTC+2), Richard Smith escribió: > > Hi Danielo, > > It seems to me like the database tiddler should be deleted > I agree
> - because it will be re-created if the process is repeated, right? And > it's useless while the wiki's open. > I'm not sure what do you mean. Do you mean that If you download again the wiki using the appropriate method it will be generated again? if so, yes, that is correct. But I have plans to provide several download methods, so once you have generated the "databaseTiddler" you can just choose another download method that saves the wiki without re-packing the database. Anyway, I think the most reasonable way is to delete that tiddler like TW deletes the import tiddler. > > Do you mean that pouchdb will contain all of the tiddlers, or a separate > db of some kind? > Yes, exactly. That is the point. At the end, this is a sync adaptor, and when a sync adaptor is available TW saves the tiddlers through it. In this case pouch saves the data in the LocalStorage DB of the browser. It also allows you to sync to a remote server. > > What would happen if you opened the file in a browser that doesn't support > pouchdb? > To be precise, is not pouchdb what is not supported, pouchdb is just a library. Pouchdb has fallback mechanisms to use whichever database the browser provides. But, if none local database is available then pouchdb will return an error, the database will not be created and the sync adaptor will not become active. I have plans to provide several tools to interact with the local database: Export database as a JSON file, import a JSON databse file to the local database and so on. I can provide a method to unpack a database tiddler as a collection of normal tiddlers to the current wiki. > > Will it be complicated to merge the databases later? > I have to experiment with it, but pouchdb provides revisions numbers, so in case of conflict the tiddler/doc with the highest revision number wins. This should happen silently. Mi idea is to only pack the last revision of each tiddler. > > Regards, > Richard > Thank you very much for your feedback Richard. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0ebabc5c-db5b-4df8-bf38-c259b626552b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

