Just like you can name the generated function with the -- name: comment it would be nice if you could name the return type as well as this type tends to get spread out in the code base as you pass it around in functions.
So instead of:
-- name: get_job_listings
select * from job_listing
generating:
you could provide a name:
-- name: get_job_listings
-- returns: JobListing
select * from job_listing
that would generate:
Just like you can name the generated function with the
-- name:comment it would be nice if you could name the return type as well as this type tends to get spread out in the code base as you pass it around in functions.So instead of:
generating:
GetJobListingsRowyou could provide a name:
that would generate:
JobListing