Skip to content

Commit

Permalink
Update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ngrislain committed Jan 26, 2024
1 parent 448eaf3 commit 7221ce0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ crate-type = ["rlib", "cdylib"]
[dependencies]
rand = "0.8"
log = "0.4"
env_logger = "0.10"
env_logger = "0.11"
colored = "2.0"
itertools = "0.12"
paste = "1.0.7"
serde = { version = "1.0", features = ["derive", "rc"] }
serde_json = "1.0"
chrono = { version = "0.4", features = ["serde"] }
sqlparser = "0.41"
sqlparser = "0.43"
dot = "0.1"
base64 = "0.21"
rusqlite = { version = "0.30", features = ["chrono"], optional = true }
Expand Down
8 changes: 7 additions & 1 deletion src/dialect_translation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,12 @@ macro_rules! relation_to_query_tranlator_trait_constructor {
on_commit: None,
on_cluster: None,
order_by: None,
strict: false,
comment: None,
auto_increment_offset: None,
partition_by: None,
cluster_by: None,
options: None,
strict: false,
}
}

Expand All @@ -217,6 +220,7 @@ macro_rules! relation_to_query_tranlator_trait_constructor {
or: None,
into: true,
table_name: table.path().clone().into(),
table_alias: None,
columns: table.schema().iter().map(|f| f.name().into()).collect(),
overwrite: false,
source: Some(Box::new(ast::Query {
Expand Down Expand Up @@ -245,6 +249,8 @@ macro_rules! relation_to_query_tranlator_trait_constructor {
on: None,
returning: None,
ignore: false,
replace_into: false,
priority: None,
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/dialect_translation/mssql.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,9 @@ impl RelationToQueryTranslator for MsSqlTranslator {
strict: false,
comment: None,
auto_increment_offset: None,
partition_by: None,
cluster_by: None,
options: None,
}
}
}
Expand Down
11 changes: 11 additions & 0 deletions src/sql/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ impl<'a> Acceptor<'a> for ast::Expr {
ast::Expr::Struct { values, fields } => todo!(),
ast::Expr::Named { expr, name } => todo!(),
ast::Expr::Convert { expr, data_type, charset, target_before_value } => todo!(),
ast::Expr::Wildcard => todo!(),
ast::Expr::QualifiedWildcard(_) => todo!(),
}
}
}
Expand Down Expand Up @@ -585,6 +587,8 @@ impl<'a, T: Clone, V: Visitor<'a, T>> visitor::Visitor<'a, ast::Expr, T> for V {
ast::Expr::Struct { values, fields } => todo!(),
ast::Expr::Named { expr, name } => todo!(),
ast::Expr::Convert { expr, data_type, charset, target_before_value } => todo!(),
ast::Expr::Wildcard => todo!(),
ast::Expr::QualifiedWildcard(_) => todo!(),
}
}
}
Expand Down Expand Up @@ -836,6 +840,11 @@ impl<'a> Visitor<'a, Result<Expr>> for TryIntoExprVisitor<'a> {
ast::BinaryOperator::MyIntegerDivide => todo!(),
ast::BinaryOperator::Custom(_) => todo!(),
ast::BinaryOperator::PGOverlap => todo!(),
ast::BinaryOperator::PGLikeMatch => todo!(),
ast::BinaryOperator::PGILikeMatch => todo!(),
ast::BinaryOperator::PGNotLikeMatch => todo!(),
ast::BinaryOperator::PGNotILikeMatch => todo!(),
ast::BinaryOperator::PGStartsWith => todo!(),
})
}

Expand Down Expand Up @@ -1214,6 +1223,8 @@ impl<'a> Visitor<'a, Result<Expr>> for TryIntoExprVisitor<'a> {
ast::DataType::Enum(_) => todo!(),
ast::DataType::Set(_) => todo!(),
ast::DataType::Struct(_) => todo!(),
ast::DataType::JSONB => todo!(),
ast::DataType::Unspecified => todo!(),
}
)
}
Expand Down

0 comments on commit 7221ce0

Please sign in to comment.