Skip to content
Discussion options

You must be logged in to vote

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 read and write:

try database.read { /* query database */ }
try database.write { /* write to database */ }

And the await version 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…

Replies: 1 comment

Comment options

You must be logged in to vote
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
Category
Q&A
Labels
None yet
2 participants