You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"INSERT INTO target_documents (target_id, path, sequence_number) VALUES (0, ?, ?)");
272
+
SQLitePersistence.QueryuntaggedDocumentsQuery =
273
+
newSQLitePersistence.Query(
274
+
db,
275
+
"SELECT RD.path FROM remote_documents AS RD WHERE NOT EXISTS (SELECT TD.path FROM target_documents AS TD WHERE RD.path = TD.path AND TD.target_id = 0)");
276
+
untaggedDocumentsQuery.forEach(
277
+
row -> {
278
+
tagDocument.clearBindings();
279
+
tagDocument.bindString(1, row.getString(0));
280
+
tagDocument.bindLong(2, sequenceNumber);
281
+
hardAssert(tagDocument.executeInsert() != -1, "Failed to insert a sentinel row");
0 commit comments