-
Notifications
You must be signed in to change notification settings - Fork 262
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
Can't create row with default values #685
Labels
api
Related to library's API
enhancement
New feature or request
greenlit
Ready for implementation
postgres
Related to PostgreSQL
Comments
There's nothing built-in, but this should work https://kyse.link/?p=s&i=1kOLhQ0FgVdND0Dksk5a |
Hmm.. Maybe it'd be worth it to add a |
koskimas
added
enhancement
New feature or request
postgres
Related to PostgreSQL
api
Related to library's API
greenlit
Ready for implementation
labels
Sep 8, 2023
Added in 0.27.1. db.insertInto('person')
.defaultValues() |
thecodrr
pushed a commit
to thecodrr/kysely
that referenced
this issue
Sep 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
api
Related to library's API
enhancement
New feature or request
greenlit
Ready for implementation
postgres
Related to PostgreSQL
It seems impossible to create a new row if a table has only auto-generated columns, e.g. postgres
gen_random_uuid()
idI tried all variations of this I could think of, including using raw
sql
, but everything I tried resulted in SQL syntax errors:The query I need to create here is
Is there a way to do this?
The text was updated successfully, but these errors were encountered: