We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65897e9 commit 2d8b845Copy full SHA for 2d8b845
doc/advanced-patterns.md
@@ -385,13 +385,12 @@ const targetDb = new DatabaseSync("target.db");
385
const session = sourceDb.createSession({ table: "documents" });
386
387
// Make changes to the source
388
-sourceDb.prepare("UPDATE documents SET content = ? WHERE id = ?").run(
389
- "Updated content",
390
- 1,
391
-);
392
-sourceDb.prepare("INSERT INTO documents (content) VALUES (?)").run(
393
- "New document",
394
+sourceDb
+ .prepare("UPDATE documents SET content = ? WHERE id = ?")
+ .run("Updated content", 1);
+ .prepare("INSERT INTO documents (content) VALUES (?)")
+ .run("New document");
395
396
// Get the changeset
397
const changeset = session.changeset();
0 commit comments