Add support for Cockroach DB (#9043)
* Add support for Cockroach DB * Add documentation, fix installation and style for CockroachDB * Fix formatting for black
This commit is contained in:
parent
607cfd1f29
commit
0cf354cc88
|
|
@ -110,6 +110,7 @@ The following RDBMS are currently supported:
|
|||
- `Apache Spark SQL <https://spark.apache.org/sql/>`_
|
||||
- `BigQuery <https://cloud.google.com/bigquery/>`_
|
||||
- `ClickHouse <https://clickhouse.yandex/>`_
|
||||
- `CockroachDB <https://www.cockroachlabs.com/>`_
|
||||
- `Dremio <https://dremio.com/>`_
|
||||
- `Elasticsearch <https://www.elastic.co/products/elasticsearch/>`_
|
||||
- `Exasol <https://www.exasol.com/>`_
|
||||
|
|
|
|||
|
|
@ -372,6 +372,8 @@ Here's a list of some of the recommended packages.
|
|||
+------------------+---------------------------------------+-------------------------------------------------+
|
||||
| ClickHouse | ``pip install sqlalchemy-clickhouse`` | |
|
||||
+------------------+---------------------------------------+-------------------------------------------------+
|
||||
| CockroachDB | ``pip install cockroachdb`` | ``cockroachdb://`` |
|
||||
+------------------+---------------------------------------+-------------------------------------------------+
|
||||
| Dremio | ``pip install sqlalchemy_dremio`` | ``dremio://user:pwd@host:31010/`` |
|
||||
+------------------+---------------------------------------+-------------------------------------------------+
|
||||
| Elasticsearch | ``pip install elasticsearch-dbapi`` | ``elasticsearch+http://`` |
|
||||
|
|
|
|||
1
setup.py
1
setup.py
|
|
@ -119,6 +119,7 @@ setup(
|
|||
"druid": ["pydruid==0.5.7", "requests==2.22.0"],
|
||||
"hana": ["hdbcli==2.4.162", "sqlalchemy_hana==0.4.0"],
|
||||
"dremio": ["sqlalchemy_dremio>=0.5.0dev0"],
|
||||
"cockroachdb": ["cockroachdb==0.3.3"],
|
||||
},
|
||||
python_requires="~=3.6",
|
||||
author="Apache Software Foundation",
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
# 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.postgres import PostgresEngineSpec
|
||||
|
||||
|
||||
class CockroachDbEngineSpec(PostgresEngineSpec):
|
||||
engine = "cockroachdb"
|
||||
Loading…
Reference in New Issue