Skip to content
Discussion options

You must be logged in to vote

You can get this information from the column that's passed as part of the parameter. The is_named_param field will also be set to true.

-- name: GetAuthor :one SELECT * FROM authors WHERE id = sqlc.arg('foo') LIMIT 1;
{ "number": 1, "column": { "name": "foo", "is_named_param": true } }

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kyleconroy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request ⚙️ WASM WASM plugins
2 participants
Converted from issue

This discussion was converted from issue #2713 on October 12, 2023 23:53.