fix(rtc): batch store and validate db (#12249)

* fix(rtc): batch store and validate db

* fix: logseq.db/transact! shouldn't distinct tx-data

since move-op include 2 steps:
1. insert-block
2. update-attrs

This results in db invalid after step 1.

* refactor: add transact-with-temp-conn!

* bump nbb-logseq and add tests for ldb/transact* fns

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: rcmerci <rcmerci@gmail.com>
This commit is contained in:
Tienson Qin
2025-12-09 20:47:37 +08:00
committed by GitHub
parent 61d28c307e
commit f594e2034f
22 changed files with 138 additions and 57 deletions

View File

@@ -3,7 +3,7 @@
"version": "1.0.0",
"private": true,
"devDependencies": {
"@logseq/nbb-logseq": "github:logseq/nbb-logseq#feat-db-v29"
"@logseq/nbb-logseq": "github:logseq/nbb-logseq#feat-db-v30"
},
"dependencies": {
"better-sqlite3": "11.10.0",