Support DEFAULT expression #99
-
Column defaults in CREATE TABLE statements should, in addition to value literals, support expressions. For example, it's very common for a column of type |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
The I think default value and default expression are different things, but yes, if we have a |
Beta Was this translation helpful? Give feedback.
-
Nice, will give that a shot 🙏 |
Beta Was this translation helpful? Give feedback.
-
@forrest-akin got success? |
Beta Was this translation helpful? Give feedback.
-
Oops, forgot to check back. Yup, |
Beta Was this translation helpful? Give feedback.
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 thedefault
method to accept bothValue
andSimpleExpr
. That say, we do not have symbols for all the database builtin functions yet (that'd be a nice-to-have), so perhaps for nowextra()
is your friend.