From 14e1182b9021fb98fb508c1023e2e4fc788db63d Mon Sep 17 00:00:00 2001 From: Luca Date: Thu, 18 Dec 2025 21:00:23 +0100 Subject: [PATCH] Resolved cargo doc --- src/ast/mod.rs | 20 ++++++++++---------- src/parser/mod.rs | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/ast/mod.rs b/src/ast/mod.rs index 66233b7b..b25b667c 100644 --- a/src/ast/mod.rs +++ b/src/ast/mod.rs @@ -932,7 +932,7 @@ pub enum Expr { /// `true` when `NOT` is present. negated: bool, /// Snowflake supports the ANY keyword to match against a list of patterns - /// https://docs.snowflake.com/en/sql-reference/functions/like_any + /// any: bool, /// Expression to match. expr: Box, @@ -946,7 +946,7 @@ pub enum Expr { /// `true` when `NOT` is present. negated: bool, /// Snowflake supports the ANY keyword to match against a list of patterns - /// https://docs.snowflake.com/en/sql-reference/functions/like_any + /// any: bool, /// Expression to match. expr: Box, @@ -986,7 +986,7 @@ pub enum Expr { compare_op: BinaryOperator, /// Right-hand subquery expression. right: Box, - /// ANY and SOME are synonymous: https://docs.cloudera.com/cdw-runtime/cloud/using-hiveql/topics/hive_comparison_predicates.html + /// ANY and SOME are synonymous: is_some: bool, }, /// `ALL` operation e.g. `foo > ALL(bar)`, comparison operator is one of `[=, >, <, =>, =<, !=]` @@ -6457,7 +6457,7 @@ pub enum MinMaxValue { Empty, /// NO MINVALUE / NO MAXVALUE. None, - /// MINVALUE / MAXVALUE . + /// MINVALUE `` / MAXVALUE ``. Some(Expr), } @@ -9154,7 +9154,7 @@ pub enum CopyLegacyOption { Delimiter(char), /// EMPTYASNULL EmptyAsNull, - /// ENCRYPTED [ AUTO ] + /// ENCRYPTED \[ AUTO \] Encrypted { /// Whether `AUTO` was specified for encryption. auto: bool, @@ -9175,16 +9175,16 @@ pub enum CopyLegacyOption { IgnoreHeader(u64), /// JSON Json, - /// MANIFEST [ VERBOSE ] + /// `MANIFEST \[ VERBOSE \]` Manifest { /// Whether the MANIFEST is verbose. verbose: bool, }, - /// MAXFILESIZE \[ AS \] max-size \[ MB | GB \] + /// `MAXFILESIZE \[ AS \] max-size \[ MB | GB \]` MaxFileSize(FileSize), - /// NULL \[ AS \] 'null_string' + /// `NULL \[ AS \] 'null_string'` Null(String), - /// PARALLEL [ { ON | TRUE } | { OFF | FALSE } ] + /// `PARALLEL [ { ON | TRUE } | { OFF | FALSE } ]` Parallel(Option), /// PARQUET Parquet, @@ -11120,7 +11120,7 @@ pub struct AlterUser { /// The name of the user to alter. pub name: Ident, /// Optional new name for the user (Snowflake-specific). - /// See: https://docs.snowflake.com/en/sql-reference/sql/alter-user#syntax + /// See: pub rename_to: Option, /// Reset the user's password. pub reset_password: bool, diff --git a/src/parser/mod.rs b/src/parser/mod.rs index 3e14af8e..2e8538e5 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs @@ -2925,7 +2925,7 @@ impl<'a> Parser<'a> { /// Parse a `NOT` expression. /// - /// See [`Expr::Not`] + /// Represented in the AST as `Expr::UnaryOp` with `UnaryOperator::Not`. pub fn parse_not(&mut self) -> Result { match self.peek_token().token { Token::Word(w) => match w.keyword { @@ -16678,7 +16678,7 @@ impl<'a> Parser<'a> { } } - /// Parses input format clause used for [ClickHouse]. + /// Parses input format clause used for ClickHouse. /// /// pub fn parse_input_format_clause(&mut self) -> Result { @@ -17723,7 +17723,7 @@ impl<'a> Parser<'a> { Ok(Statement::Rollback { chain, savepoint }) } - /// Parse an optional 'AND [NO] CHAIN' clause for `COMMIT` and `ROLLBACK` statements + /// Parse an optional `AND [NO] CHAIN` clause for `COMMIT` and `ROLLBACK` statements pub fn parse_commit_rollback_chain(&mut self) -> Result { let _ = self.parse_one_of_keywords(&[Keyword::TRANSACTION, Keyword::WORK]); if self.parse_keyword(Keyword::AND) {