Skip to content

Commit ee68514

Browse files
committed
Fix build and docs
1 parent 198ca40 commit ee68514

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

src/ast/mod.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7354,9 +7354,9 @@ impl Display for UtilityOption {
73547354
}
73557355
}
73567356

7357-
/// Represents the different options available for a SHOW <OBJECT>
7358-
/// statement to filter the results. Example from Snowflake:
7359-
/// https://docs.snowflake.com/en/sql-reference/sql/show-tables
7357+
/// Represents the different options available for `SHOW`
7358+
/// statements to filter the results. Example from Snowflake:
7359+
/// <https://docs.snowflake.com/en/sql-reference/sql/show-tables>
73607360
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
73617361
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
73627362
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
@@ -7404,13 +7404,16 @@ impl Display for ShowStatementOptions {
74047404
}
74057405

74067406
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
7407+
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
7408+
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
74077409
pub enum ShowStatementFilterPosition {
74087410
Infix(ShowStatementFilter), // For example: SHOW COLUMNS LIKE '%name%' IN TABLE tbl
74097411
Suffix(ShowStatementFilter), // For example: SHOW COLUMNS IN tbl LIKE '%name%'
74107412
}
74117413

74127414
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
74137415
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
7416+
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
74147417
pub enum ShowStatementInParentType {
74157418
Account,
74167419
Database,
@@ -7433,6 +7436,7 @@ impl fmt::Display for ShowStatementInParentType {
74337436

74347437
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
74357438
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
7439+
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
74367440
pub struct ShowStatementIn {
74377441
pub clause: ShowStatementInClause,
74387442
pub parent_type: Option<ShowStatementInParentType>,

src/dialect/snowflake.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ impl Dialect for SnowflakeDialect {
205205
}
206206

207207
/// Snowflake expects the `LIKE` option before the `IN` option,
208-
/// for example: https://docs.snowflake.com/en/sql-reference/sql/show-views#syntax
208+
/// for example: <https://docs.snowflake.com/en/sql-reference/sql/show-views#syntax>
209209
fn supports_show_like_before_in(&self) -> bool {
210210
true
211211
}

0 commit comments

Comments
 (0)