Skip to content

Commit 08da799

Browse files
docs: Fix sqlite syncing example (#2463)
1 parent 16ef083 commit 08da799

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/source/data_modeling.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ Example on syncing instances to local sqlite
234234
"INSERT INTO instance VALUES (?, ?, ?) ON CONFLICT DO UPDATE SET data=excluded.data",
235235
inserts,
236236
)
237+
# Wipe existing cursor and insert new one
238+
connection.execute("DELETE FROM cursor")
237239
connection.execute(
238240
"INSERT INTO cursor VALUES (?)", [result.cursors["nodes"]]
239241
)

0 commit comments

Comments
 (0)