Skip to content

Support type overrides for parameter structs #671

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kyleconroy opened this issue Aug 23, 2020 · 0 comments
Open

Support type overrides for parameter structs #671

kyleconroy opened this issue Aug 23, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@kyleconroy
Copy link
Collaborator

Given the following tables and queries, type overrides should apply to the inputs of GetFoo and GetBar.

CREATE TABLE foo (id bigserial not null);
CREATE TABLE bar (id bigserial not null);

-- name: GetFoo :one
SELECT * FROM foo WHERE id = $1;

-- name: GetBar :one
SELECT * FROM bar WHERE id = $1;

Originally posted by @tv42 in #607

@kyleconroy kyleconroy added the enhancement New feature or request label Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant