Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upINSERT DEFAULT VALUES? #872
Comments
This comment has been minimized.
|
Of cause, I know I can do it with sql::<Integer>("INSERT INTO users DEFAULT VALUES RETURNING id") |
This comment has been minimized.
|
This is a reasonable feature, but I'm unsure what I'd like the public API for it to be. If nothing else, |
This comment has been minimized.
|
I suppose allowing empty structs to derive |
added a commit
to Eijebong/diesel
that referenced
this issue
May 15, 2017
added a commit
to Eijebong/diesel
that referenced
this issue
May 15, 2017
added a commit
to Eijebong/diesel
that referenced
this issue
May 22, 2017
added a commit
to Eijebong/diesel
that referenced
this issue
May 22, 2017
added a commit
to Eijebong/diesel
that referenced
this issue
Jun 7, 2017
added a commit
to Eijebong/diesel
that referenced
this issue
Jun 11, 2017
Eijebong
closed this
in
#913
Jun 11, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
KeenS commentedApr 26, 2017
I have this table
and want to create an user using default values.
I tried to define this structure:
but it raises this error:
It is reasonable because in SQL, inserting empty values is not allowed
However, with,
DEFAULT VALUEyou can insert values with default values.How can I use this feature through diesel? Or if not supported, could you support this (feature request)?