You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a workaround, you can remove the parentheses from your SELECT clause and sqlc will by default generate a struct (because it's more than 1 field returned).
The interface{} is generated because using () return a row type. As Jille mentioned, you'll want to remove the parens. We're tracking generating valid code for these cases in #2760
Version
1.16.0
What happened?
I have this postgresql query -
and I am trying to generate GoLang code.
sqlc doesn't generate a struct representing
(email, username)
. Instead, it just createsinterface{ }
.Relevant log output
No response
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/0210bd42a17a0804f628d75bd58e69757e9be888a4f9ed713f8acaaa1cbd49d3
What operating system are you using?
Linux
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: