Skip to content

GRDB with swiftUI @Query question #1152

Answered by groue
yliu342 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @yliu342,

there is a @query property wrapper and I can't seem to find and doc

It comes from the GRDBQuery package.

And my view want to show player in a particular team the team is passed in from the previous view so it will be dynamic.

You can get inspiration from those lines in the demo app.

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 .sqlite file from disk or is there a better way? Assuming the connection is closed due to pool is released.

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 …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yliu342
Comment options

Answer selected by yliu342
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