@@ -1327,15 +1327,18 @@ pub enum ColumnOption {
1327
1327
/// `DEFAULT <restricted-expr>`
1328
1328
Default ( Expr ) ,
1329
1329
1330
- /// ClickHouse supports `MATERIALIZE`, `EPHEMERAL` and `ALIAS` expr to generate default values.
1330
+ /// `MATERIALIZE < expr>`
1331
1331
/// Syntax: `b INT MATERIALIZE (a + 1)`
1332
+ ///
1332
1333
/// [ClickHouse](https://clickhouse.com/docs/en/sql-reference/statements/create/table#default_values)
1333
-
1334
- /// `MATERIALIZE <expr>`
1335
1334
Materialized ( Expr ) ,
1336
1335
/// `EPHEMERAL [<expr>]`
1336
+ ///
1337
+ /// [ClickHouse](https://clickhouse.com/docs/en/sql-reference/statements/create/table#default_values)
1337
1338
Ephemeral ( Option < Expr > ) ,
1338
1339
/// `ALIAS <expr>`
1340
+ ///
1341
+ /// [ClickHouse](https://clickhouse.com/docs/en/sql-reference/statements/create/table#default_values)
1339
1342
Alias ( Expr ) ,
1340
1343
1341
1344
/// `{ PRIMARY KEY | UNIQUE } [<constraint_characteristics>]`
@@ -1552,7 +1555,7 @@ pub enum GeneratedExpressionMode {
1552
1555
#[ must_use]
1553
1556
fn display_constraint_name ( name : & ' _ Option < Ident > ) -> impl fmt:: Display + ' _ {
1554
1557
struct ConstraintName < ' a > ( & ' a Option < Ident > ) ;
1555
- impl < ' a > fmt:: Display for ConstraintName < ' a > {
1558
+ impl fmt:: Display for ConstraintName < ' _ > {
1556
1559
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1557
1560
if let Some ( name) = self . 0 {
1558
1561
write ! ( f, "CONSTRAINT {name} " ) ?;
@@ -1573,7 +1576,7 @@ fn display_option<'a, T: fmt::Display>(
1573
1576
option : & ' a Option < T > ,
1574
1577
) -> impl fmt:: Display + ' a {
1575
1578
struct OptionDisplay < ' a , T > ( & ' a str , & ' a str , & ' a Option < T > ) ;
1576
- impl < ' a , T : fmt:: Display > fmt:: Display for OptionDisplay < ' a , T > {
1579
+ impl < T : fmt:: Display > fmt:: Display for OptionDisplay < ' _ , T > {
1577
1580
fn fmt ( & self , f : & mut fmt:: Formatter ) -> fmt:: Result {
1578
1581
if let Some ( inner) = self . 2 {
1579
1582
let ( prefix, postfix) = ( self . 0 , self . 1 ) ;
0 commit comments