Duplicate query name error generating sqlite code #1872
Unanswered
mrjawright
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I understand that sqlite support is still in Beta, but I'm hoping this is something easy to fix on my end that I'm just overlooking.
I'm trying to do a POC on a simple database, but whenever I run
generate
i getresources/query.sql:1:1: duplicate query name: GetUserByUserId
. It doesn't matter what I change the query name to, it always get the same error.my query.sql:
Edit: this is what happens when you have more than one table and the queries aren't grouped by table. Makes sense in retrospect, but maybe you could have more than one table in the tutorial so that was a little more obvious?
Beta Was this translation helpful? Give feedback.
All reactions