-
- Downloads
Switch sql templates to an instaparse grammar
This commit switches the SQL template parsing to a formally specified EBNF grammar using instaparse. By specifying it in this way, changes to the language become more flexible and explicit. This commit also adds support for multiple parameters specified in an optional clause as it's baked into the grammar. Fixes #5492
Showing
- project.clj 1 addition, 0 deletionsproject.clj
- src/metabase/query_processor/middleware/parameters/sql.clj 89 additions, 115 deletionssrc/metabase/query_processor/middleware/parameters/sql.clj
- test/metabase/driver/generic_sql/native_test.clj 2 additions, 2 deletionstest/metabase/driver/generic_sql/native_test.clj
- test/metabase/query_processor/middleware/parameters/sql_test.clj 7 additions, 1 deletion...tabase/query_processor/middleware/parameters/sql_test.clj
Loading
Please register or sign in to comment