From 559605e393c50ea1d2352908bfb9f48026e886ec Mon Sep 17 00:00:00 2001 From: Daniel Vaz Gaspar Date: Fri, 5 Apr 2024 10:41:37 +0100 Subject: [PATCH] fix: add mariadb engine spec same as MySQL (#27919) --- superset/db_engine_specs/mariadb.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 superset/db_engine_specs/mariadb.py diff --git a/superset/db_engine_specs/mariadb.py b/superset/db_engine_specs/mariadb.py new file mode 100644 index 000000000..176c3d7ec --- /dev/null +++ b/superset/db_engine_specs/mariadb.py @@ -0,0 +1,22 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +from superset.db_engine_specs.mysql import MySQLEngineSpec + + +class MariaDBEngineSpec(MySQLEngineSpec): + engine = "mariadb" + engine_name = "MariaDB"