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
-- name: ListSBOMComponents :manyselect
component_name,
json_agg(version) as versions,
json_agg(license_ids) as licenses
from sbom_components
group by component_name;
Where component_name, version and license_ids are all strings.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello!
I have this query:
Where
component_name
,version
andlicense_ids
are all strings.The resulting type is this:
I am using
pgx
where it is possible to specify which types JSON objects deserialize to. (so this), but I don't know what to put into the column field.What I tried is:
What I expect is
But that did not work as expected. Any ideas on this?
Beta Was this translation helpful? Give feedback.
All reactions