File tree Expand file tree Collapse file tree 5 files changed +44
-34
lines changed Expand file tree Collapse file tree 5 files changed +44
-34
lines changed Original file line number Diff line number Diff line change 99* .iml
1010teradata-driver.iml
1111.lein-repl-history
12+ .cpcache
Original file line number Diff line number Diff line change @@ -50,19 +50,19 @@ If you are running the Docker image or you want to use another directory for plu
5050
5151## Building the Teradata Driver Yourself
5252
53- ### Prereqs: Install Metabase locally, compiled for building drivers
54-
55- ``` bash
56- cd /path/to/metabase/source
57- lein install-for-building-drivers
58- ```
59-
60- ### Build it
61-
62- ``` bash
63- cd /path/to/teradata-driver
64- lein clean
65- DEBUG=1 LEIN_SNAPSHOTS_IN_RELEASE=true lein uberjar
66- ```
67-
68- This will build a file called ` target/uberjar/ teradata.metabase-driver.jar ` ; copy this to your Metabase ` ./plugins ` directory.
53+ ## One time setup of metdata
54+
55+ You require metabase to be installed alongside of your project
56+ 1 . cd metadata-teradata-driver/..
57+ 2 . git clone https://github.com/metabase/metabase
58+ 3 . cd metabase
59+ 4 . clojure -X : deps prep
60+ 5 . cd modules/driver
61+ 6 . clojure -X : deps prep
62+ 7 . cd ../../../metadata-teradata-driver
63+
64+ ## Build
65+ 1 . modify : paths in deps.edn, make them absolute
66+ 2 . clojure -X : build
67+
68+ This will build a file called ` target/teradata.metabase-driver.jar ` ; copy this to your Metabase ` ./plugins ` directory.
Original file line number Diff line number Diff line change 1+ {
2+ :paths [
3+ ; before building, you need to turn those into absolute paths
4+ " src"
5+ " resources"
6+ ]
7+
8+ ; build the driver with `clojure -X:build` assumes that:
9+ ; 1. the metabase repo (https://github.com/metabase/metabase) exists in ../metabase
10+ ; 2. the correct tag is checked out `git checkout v...`
11+ ; 3. `clojure -X:deps prep` was run in ../metabase as well as in ../metabase/modules/drivers
12+ ; 4. You have turned the relative :paths above into absolute paths
13+ :aliases {
14+ :build {
15+ ; ; as soon as extra-deps supports prep-lib we can use {:git/url "https://github.com/metabase/metabase.git" :git/tag "v0.41.7" :git/sha "5d45269b16"}
16+ :extra-deps {metabase/metabase-core {:local/root " ../metabase" }
17+ metabase/build-drivers {:local/root " ../metabase/bin/build-drivers" }}
18+ :exec-fn build-drivers.build-driver/build-driver!
19+ :exec-args {:driver :teradata
20+ :project-dir " ."
21+ :target-dir " ./target" }
22+
23+ }
24+ }
25+ }
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11info :
22 name : Metabase Teradata Driver
3- version : 1.0.2-teradata-jdbc-17.10
3+ version : 1.0.2-metabase-v0.41.7- teradata-jdbc-17.10
44 description : Allows Metabase to connect to Teradata databases. Community Supported driver.
55dependencies :
66 - class : com.teradata.jdbc.TeraDriver
77 message : >
8- Metabase requires the Teradata terajdbc4.jar and tdgssconfig.jar in order to be able to connect to Teradata databases.
8+ Metabase requires the Teradata terajdbc4.jar in order to be able to connect to Teradata databases.
99driver :
1010 name : teradata
1111 display-name : Teradata
You can’t perform that action at this time.
0 commit comments