Certain queries end up with generic (read: terrible) names in parameter structs. For example
CREATE TABLE foo (bar text not null);
-- name: ListBar :many
SELECT bar FROM foo WHERE $1:bool;
There is no way to generate a good name for lone parameter in this query. Maybe another special comment? -- param could work.
-- name: ListBar :many
-- param: 1 IsTrue
SELECT bar FROM foo WHERE $1:bool;
Certain queries end up with generic (read: terrible) names in parameter structs. For example
There is no way to generate a good name for lone parameter in this query. Maybe another special comment?
-- paramcould work.