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:
- pip install awscli==1.7.3
database:
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
test:
override:
......
......@@ -20,20 +20,15 @@
;; ## Constants
(def ^:const available-drivers
"DB drivers that are available as a dictionary. Each key is a driver with dictionary of attributes.
ex: `:h2 {:id \"h2\" :name \"H2\"}`"
"Available DB drivers."
{:h2 {:id "h2"
:name "H2"
:example "file:[filename]"}
:name "H2"}
:postgres {:id "postgres"
:name "Postgres"
:example "host=[ip address] port=5432 dbname=examples user=corvus password=******"}
:name "Postgres"}
:mongo {:id "mongo"
:name "MongoDB"
:example "mongodb://password:username@127.0.0.1:27017/db-name"}
:name "MongoDB"}
:mysql {:id "mysql"
:name "MySQL"
:example "N/A"}}) ; TODO - we don't use connection strings any more so we shouldn't define example ones (!)
:name "MySQL"}})
(defn class->base-type
"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