mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +00:00
Improve docs for KILL statement (#481)
This commit is contained in:
parent
f5980cd30f
commit
a9d7f7af1f
2 changed files with 4 additions and 2 deletions
|
@ -1005,6 +1005,8 @@ pub enum Statement {
|
|||
data_types: Vec<DataType>,
|
||||
statement: Box<Statement>,
|
||||
},
|
||||
/// KILL [CONNECTION | QUERY | MUTATION]
|
||||
///
|
||||
/// See <https://clickhouse.com/docs/ru/sql-reference/statements/kill/>
|
||||
/// See <https://dev.mysql.com/doc/refman/8.0/en/kill.html>
|
||||
Kill {
|
||||
|
@ -2464,7 +2466,7 @@ impl fmt::Display for CopyLegacyCsvOption {
|
|||
}
|
||||
}
|
||||
|
||||
///
|
||||
///
|
||||
#[derive(Debug, Clone, PartialEq, Eq, Hash)]
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
pub enum MergeClause {
|
||||
|
|
|
@ -2879,7 +2879,7 @@ impl<'a> Parser<'a> {
|
|||
})
|
||||
}
|
||||
|
||||
// KILL [CONNECTION | QUERY] processlist_id
|
||||
// KILL [CONNECTION | QUERY | MUTATION] processlist_id
|
||||
pub fn parse_kill(&mut self) -> Result<Statement, ParserError> {
|
||||
let modifier_keyword =
|
||||
self.parse_one_of_keywords(&[Keyword::CONNECTION, Keyword::QUERY, Keyword::MUTATION]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue