On 2014-11-06, 4:17 PM, Richard Newman wrote:
We do sync form history on Android -- it was one of the first things I ever wrote as a MoCo employee.
Collection "forms", only columns are "key" and "value" IIRC.
Huh, that fell out of my brain. So then… two of three platforms.
I don't understand how "the name search-history" makes sense. This could
identify a single record by guid, but the forms record format only stores one key=value
pair.
Take a look: each record has a unique GUID, a name (always “search-history” for
searches), and a value (the search term).
This is true both in the DB and on the server. Obviously we store way more data
in the DB.
{collection: "forms", name: "searchbar-history", value: "sqlite case folding", id:
"zc/azbfecEuYy6kE", sortindex: 0}
{collection: "forms", name: "searchbar-history", value: "it's science fact", id:
"yPJnpKct+0K7LpS3", sortindex: 0}
Gah! I forgot that form element names were not unique. (Which is,
frankly, part of the problem.)
Nick
_______________________________________________
Sync-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/sync-dev