mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +00:00
Use the same order in #[derive()] for all AST types
(So that adding another trait can be done with a global search and replace.)
This commit is contained in:
parent
e113dee7e8
commit
31b6076d05
2 changed files with 4 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
/// SQL Operator
|
||||
#[derive(Debug, PartialEq, Clone)]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum SQLOperator {
|
||||
Plus,
|
||||
Minus,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use super::{SQLIdent, SQLObjectName};
|
||||
|
||||
#[derive(Debug, PartialEq, Clone)]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum AlterOperation {
|
||||
AddConstraint(TableKey),
|
||||
RemoveConstraint { name: SQLIdent },
|
||||
|
@ -17,13 +17,13 @@ impl ToString for AlterOperation {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Clone)]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct Key {
|
||||
pub name: SQLIdent,
|
||||
pub columns: Vec<SQLIdent>,
|
||||
}
|
||||
|
||||
#[derive(Debug, PartialEq, Clone)]
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum TableKey {
|
||||
PrimaryKey(Key),
|
||||
UniqueKey(Key),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue