How to write Postgres INSERT with "DEFAULT" as one of the param? #356
Answered
by
stephenafamo
pixelsoccupied
asked this question in
Q&A
-
e.g what would be the equivalent Bob of
Note i tried something like Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
stephenafamo
Feb 13, 2025
Replies: 1 comment
-
You can't send psql.Insert(
im.Into("users", "name", "age", "id"),
im.Values(psql.Arg("Mozart"), psql.Arg(20), psql.Raw("DEFAULT")),
) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
stephenafamo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can't send
DEFAULT
as an arg, all you would need ispsql.Raw