Skip to content

Support DEFAULT expression #99

Answered by tyt2y3
forrest-akin asked this question in Q&A
Discussion options

You must be logged in to vote

The extra() method can be used to append expressions to the column definition.

I think default value and default expression are different things, but yes, if we have a DefaultExpr variant, we could probably make the default method to accept both Value and SimpleExpr. That say, we do not have symbols for all the database builtin functions yet (that'd be a nice-to-have), so perhaps for now extra() is your friend.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tyt2y3
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #80 on August 13, 2021 12:34.