From 368cddde5377bbc7bf355365c1a9bebceb38e674 Mon Sep 17 00:00:00 2001 From: Ben King <9087625+benfdking@users.noreply.github.com> Date: Tue, 17 Dec 2024 14:15:05 +0100 Subject: [PATCH] update [ci skip] --- crates/lib-dialects/src/databricks.rs | 44 ++++++++++++++------------- 1 file changed, 23 insertions(+), 21 deletions(-) diff --git a/crates/lib-dialects/src/databricks.rs b/crates/lib-dialects/src/databricks.rs index faa643dd..5e633974 100644 --- a/crates/lib-dialects/src/databricks.rs +++ b/crates/lib-dialects/src/databricks.rs @@ -127,27 +127,29 @@ pub fn dialect() -> Dialect { .to_matchable() .into(), ), - // ( - // "ForeignKeyOptionGrammar".into(), - // Sequence::new(vec_of_erased![ - // Sequence::new(vec_of_erased![Ref::keyword("MATCH"), Ref::keyword("FULL"),]) - // .config(|config| { config.optional() }), - // Sequence::new(vec_of_erased![ - // Ref::keyword("ON"), - // Ref::keyword("UPDATE"), - // Ref::keyword("NO"), - // Ref::keyword("ACTION"), - // ]) - // .config(|config| { config.optional() }), - // Sequence::new(vec_of_erased![ - // Ref::keyword("ON"), - // Ref::keyword("DELETE"), - // Ref::keyword("NO"), - // Ref::keyword("ACTION"), - // ]), - // ]), - // ), - // // DropConstraintGrammar=Sequence( + ( + "ForeignKeyOptionGrammar".into(), + Sequence::new(vec_of_erased![ + Sequence::new(vec_of_erased![Ref::keyword("MATCH"), Ref::keyword("FULL"),]) + .config(|config| { config.optional() }), + Sequence::new(vec_of_erased![ + Ref::keyword("ON"), + Ref::keyword("UPDATE"), + Ref::keyword("NO"), + Ref::keyword("ACTION"), + ]) + .config(|config| { config.optional() }), + Sequence::new(vec_of_erased![ + Ref::keyword("ON"), + Ref::keyword("DELETE"), + Ref::keyword("NO"), + Ref::keyword("ACTION"), + ]), + ]) + .to_matchable() + .into(), + ), + // DropConstraintGrammar=Sequence( // // "DROP", // // OneOf( // // Sequence(