Resolved cargo doc

This commit is contained in:
Luca 2025-12-18 21:00:23 +01:00
parent 4f3d908ca2
commit 14e1182b90
2 changed files with 13 additions and 13 deletions

View file

@ -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
/// <https://docs.snowflake.com/en/sql-reference/functions/like_any>
any: bool,
/// Expression to match.
expr: Box<Expr>,
@ -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
/// <https://docs.snowflake.com/en/sql-reference/functions/like_any>
any: bool,
/// Expression to match.
expr: Box<Expr>,
@ -986,7 +986,7 @@ pub enum Expr {
compare_op: BinaryOperator,
/// Right-hand subquery expression.
right: Box<Expr>,
/// ANY and SOME are synonymous: https://docs.cloudera.com/cdw-runtime/cloud/using-hiveql/topics/hive_comparison_predicates.html
/// ANY and SOME are synonymous: <https://docs.cloudera.com/cdw-runtime/cloud/using-hiveql/topics/hive_comparison_predicates.html>
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 <expr> / MAXVALUE <expr>.
/// MINVALUE `<expr>` / MAXVALUE `<expr>`.
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<bool>),
/// 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: <https://docs.snowflake.com/en/sql-reference/sql/alter-user#syntax>
pub rename_to: Option<Ident>,
/// Reset the user's password.
pub reset_password: bool,

View file

@ -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<Expr, ParserError> {
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.
///
/// <https://clickhouse.com/docs/en/interfaces/formats>
pub fn parse_input_format_clause(&mut self) -> Result<InputFormatClause, ParserError> {
@ -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<bool, ParserError> {
let _ = self.parse_one_of_keywords(&[Keyword::TRANSACTION, Keyword::WORK]);
if self.parse_keyword(Keyword::AND) {