Repository navigation
A lot of different "read..."/"write..." methods. Need clarification with them #54
Answered
by
mbrandonw
gerchicov-vg
asked this question in
Q&A
Answered by
mbrandonw
May 15, 2025
Replies: 1 comment
|
Hi @gerchicov-vg, these methods come from GRDB, not SharingGRDB. Just for clarification, SharingGRDB is a library built on top of GRDB that adds conveniences for modeling state in features that is driven off of a SQLite database. To answer you question, you really don't need to worry about any of those methods. The vast majority of the time you can just use try database.read { /* query database */ }
try database.write { /* write to database */ }And the If this doesn't answer your question you could try starting a discussion on GRDB's repo to get more clarification. |
0 replies
Answer selected by
gerchicov-vg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Hi @gerchicov-vg, these methods come from GRDB, not SharingGRDB. Just for clarification, SharingGRDB is a library built on top of GRDB that adds conveniences for modeling state in features that is driven off of a SQLite database.
To answer you question, you really don't need to worry about any of those methods. The vast majority of the time you can just use
readandwrite:And the
awaitversion is enforced depending on whether or not you are in an async context. So even that you don't have to worry about.If this doesn't answer your question you could try starting a discussion on GRDB's repo to get m…