-
Hi, I'm wanting to use GRDB in a SwiftUI app and I'm totally new to GRDB but from what I read it is really promising. I looked at the demo app and noticed there is a @query property wrapper and I can't seem to find and doc on can anyone point me to the right direction? Also I played with it a bit and noticed I can't use a a variable within the property wrapper (a SwiftUI limitation?). Assuming my record looks something like this:
And my view want to show player in a particular My last question on how to best delete the table/db if I use GRDB in a SPM package that being used as part of an app? Should I simply delete the Any suggestion is very much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hello @yliu342,
It comes from the GRDBQuery package.
You can get inspiration from those lines in the demo app.
I'm not sure I understand your question: deleting a table, or a whole database file, is not at all the same thing. Since deleting a table is not supposed to be difficult, I assume you ask how to delete a database file. Please see #164 (comment) |
Beta Was this translation helpful? Give feedback.
Hello @yliu342,
It comes from the GRDBQuery package.
You can get inspiration from those lines in the demo app.
I'm not sure I understand your question: deleting a table, or a whole database file, is not at all the same thing. Since deleting a table …