I have a function in my postgres database which accepts an array of a custom type:
CREATE TYPE dbo.my_type AS (my_field bigint);
CREATE FUNCTION dbo.my_func(records dbo.my_type[])
...
Is there a way to call it with SQLBoiler?
SQLBoiler did not generate a model for that type.
I tried to do a raw query using types.Array and a custom written struct but got an error:
sql: converting argument $1 type: unsupported type dbo.MyType, a struct
What version of SQLBoiler are you using (
sqlboiler --version
)?SQLBoiler v3.1.0
If this happened at generation time what was the full SQLBoiler command you used to generate your models? (if not applicable leave blank)
sqlboiler -c ./sqlboiler.toml -o ./internal/models --wipe psql
Description
I have a function in my postgres database which accepts an array of a custom type:
Is there a way to call it with SQLBoiler? SQLBoiler did not generate a model for that type. I tried to do a raw query using
types.Array
and a custom written struct but got an error:The code I tried: