Skip to content
Snippets Groups Projects
Commit 10ec79a3 authored by Cam Saul's avatar Cam Saul
Browse files

cleanup metabase.driver/available-drivers :smirk:

parent 4474d81c
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ dependencies: ...@@ -11,6 +11,7 @@ dependencies:
- pip install awscli==1.7.3 - pip install awscli==1.7.3
database: database:
post: post:
# MySQL doesn't load named timezone information automatically, you have to run this command to load it
- mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u ubuntu mysql - mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u ubuntu mysql
test: test:
override: override:
......
...@@ -20,20 +20,15 @@ ...@@ -20,20 +20,15 @@
;; ## Constants ;; ## Constants
(def ^:const available-drivers (def ^:const available-drivers
"DB drivers that are available as a dictionary. Each key is a driver with dictionary of attributes. "Available DB drivers."
ex: `:h2 {:id \"h2\" :name \"H2\"}`"
{:h2 {:id "h2" {:h2 {:id "h2"
:name "H2" :name "H2"}
:example "file:[filename]"}
:postgres {:id "postgres" :postgres {:id "postgres"
:name "Postgres" :name "Postgres"}
:example "host=[ip address] port=5432 dbname=examples user=corvus password=******"}
:mongo {:id "mongo" :mongo {:id "mongo"
:name "MongoDB" :name "MongoDB"}
:example "mongodb://password:username@127.0.0.1:27017/db-name"}
:mysql {:id "mysql" :mysql {:id "mysql"
:name "MySQL" :name "MySQL"}})
:example "N/A"}}) ; TODO - we don't use connection strings any more so we shouldn't define example ones (!)
(defn class->base-type (defn class->base-type
"Return the `Field.base_type` that corresponds to a given class returned by the DB." "Return the `Field.base_type` that corresponds to a given class returned by the DB."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment