Closed as not planned
Description
Version
1.18.0
What happened?
I'm attempting to generate some row types from json data in my application. Unfortunately, SQLC seems to bail when trying to generate a struct from these record types. I'm not sure if this is a limitation of the JSON functions or due to limited support in general for records. I didn't see any similar issues with record types, so filing away here.
With json_populate_record
: https://play.sqlc.dev/p/79b3c6a6e914e6d22e63cfe5c327fdac124c35be28cd0760f4b867052cb546ec
With json_to_record
:
https://play.sqlc.dev/p/bdd5efdf46740ad811a74d219df9272ade54b0ae12421ce89aec4d335a9e6ce9
Issue is that the row struct is empty:
type GetResultRow struct {
}
Relevant log output
No response
Database schema
No response
SQL queries
No response
Configuration
No response
Playground URL
No response
What operating system are you using?
No response
What database engines are you using?
PostgreSQL
What type of code are you generating?
Go