@@ -1123,15 +1123,18 @@ pub enum ColumnOption {
1123
1123
/// `DEFAULT <restricted-expr>`
1124
1124
Default ( Expr ) ,
1125
1125
1126
- /// ClickHouse supports `MATERIALIZE`, `EPHEMERAL` and `ALIAS` expr to generate default values.
1126
+ /// `MATERIALIZE < expr>`
1127
1127
/// Syntax: `b INT MATERIALIZE (a + 1)`
1128
+ ///
1128
1129
/// [ClickHouse](https://clickhouse.com/docs/en/sql-reference/statements/create/table#default_values)
1129
-
1130
- /// `MATERIALIZE <expr>`
1131
1130
Materialized ( Expr ) ,
1132
1131
/// `EPHEMERAL [<expr>]`
1132
+ ///
1133
+ /// [ClickHouse](https://clickhouse.com/docs/en/sql-reference/statements/create/table#default_values)
1133
1134
Ephemeral ( Option < Expr > ) ,
1134
1135
/// `ALIAS <expr>`
1136
+ ///
1137
+ /// [ClickHouse](https://clickhouse.com/docs/en/sql-reference/statements/create/table#default_values)
1135
1138
Alias ( Expr ) ,
1136
1139
1137
1140
/// `{ PRIMARY KEY | UNIQUE } [<constraint_characteristics>]`
@@ -1330,7 +1333,7 @@ pub enum GeneratedExpressionMode {
1330
1333
#[ must_use]
1331
1334
fn display_constraint_name ( name : & ' _ Option < Ident > ) -> impl fmt:: Display + ' _ {
1332
1335
struct ConstraintName < ' a > ( & ' a Option < Ident > ) ;
1333
- impl < ' a > fmt:: Display for ConstraintName < ' a > {
1336
+ impl fmt:: Display for ConstraintName < ' _ > {
1334
1337
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1335
1338
if let Some ( name) = self . 0 {
1336
1339
write ! ( f, "CONSTRAINT {name} " ) ?;
@@ -1351,7 +1354,7 @@ fn display_option<'a, T: fmt::Display>(
1351
1354
option : & ' a Option < T > ,
1352
1355
) -> impl fmt:: Display + ' a {
1353
1356
struct OptionDisplay < ' a , T > ( & ' a str , & ' a str , & ' a Option < T > ) ;
1354
- impl < ' a , T : fmt:: Display > fmt:: Display for OptionDisplay < ' a , T > {
1357
+ impl < T : fmt:: Display > fmt:: Display for OptionDisplay < ' _ , T > {
1355
1358
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1356
1359
if let Some ( inner) = self . 2 {
1357
1360
let ( prefix, postfix) = ( self . 0 , self . 1 ) ;
0 commit comments