A lot of different "read..."/"write..." methods. Need clarification with them #54
-
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.

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…