Repository navigation
Replace bulk text in a database with a specific character #13808
|
Answered by
nicholas-greenwood
Oct 20, 2026
Replies: 2 comments 2 replies
|
You should try using the CLI. It gets installed automatically when you install Logseq. Read more about it here https://github.com/logseq/logseq/tree/master/docs/cli |
1 reply
|
yes, python can drive the current cli suggested above. read avoid direct sqlite replacement because the graph uses datascript storage. export the db and assets and test on a copy first |
1 reply
Answer selected by
ekaak348
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yes, python can drive the current cli suggested above. read
:block/titlewithlogseq query, replace the character, then runlogseq upsert block --graph GRAPH --id ID --content "NEW TEXT". this is for ordinary block textavoid direct sqlite replacement because the graph uses datascript storage. export the db and assets and test on a copy first