mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +00:00
Update doc comments
(The `SQLBetween` change is to fix a `cargo doc` warning.)
This commit is contained in:
parent
4b27db0bf9
commit
d58bbb8f9f
1 changed files with 6 additions and 3 deletions
|
@ -41,8 +41,11 @@ fn comma_separated_string<T: ToString>(vec: &[T]) -> String {
|
|||
/// Identifier name, in the originally quoted form (e.g. `"id"`)
|
||||
pub type SQLIdent = String;
|
||||
|
||||
/// Represents a parsed SQL expression, which is a common building
|
||||
/// block of SQL statements (the part after SELECT, WHERE, etc.)
|
||||
/// An SQL expression of any type.
|
||||
///
|
||||
/// The parser does not distinguish between expressions of different types
|
||||
/// (e.g. boolean vs string), so the caller must handle expressions of
|
||||
/// inappropriate type, like `WHERE 1` or `SELECT 1=1`, as necessary.
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum ASTNode {
|
||||
/// Identifier e.g. table name or column name
|
||||
|
@ -72,7 +75,7 @@ pub enum ASTNode {
|
|||
subquery: Box<SQLQuery>,
|
||||
negated: bool,
|
||||
},
|
||||
/// <expr> [ NOT ] BETWEEN <low> AND <high>
|
||||
/// `<expr> [ NOT ] BETWEEN <low> AND <high>`
|
||||
SQLBetween {
|
||||
expr: Box<ASTNode>,
|
||||
negated: bool,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue