Skip to content

Commit

Permalink
Metabase v0.41.7 release
Browse files Browse the repository at this point in the history
  • Loading branch information
robstoll committed Apr 28, 2022
1 parent 0b89d95 commit 84f9c23
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 34 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
*.iml
teradata-driver.iml
.lein-repl-history
.cpcache
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ If you are running the Docker image or you want to use another directory for plu

## Building the Teradata Driver Yourself

### Prereqs: Install Metabase locally, compiled for building drivers

```bash
cd /path/to/metabase/source
lein install-for-building-drivers
```

### Build it

```bash
cd /path/to/teradata-driver
lein clean
DEBUG=1 LEIN_SNAPSHOTS_IN_RELEASE=true lein uberjar
```

This will build a file called `target/uberjar/teradata.metabase-driver.jar`; copy this to your Metabase `./plugins` directory.
## One time setup of metdata

You require metabase to be installed alongside of your project
1. cd metadata-teradata-driver/..
2. git clone https://github.com/metabase/metabase
3. cd metabase
4. clojure -X:deps prep
5. cd modules/driver
6. clojure -X:deps prep
7. cd ../../../metadata-teradata-driver

## Build
1. modify :paths in deps.edn, make them absolute
2. clojure -X:build

This will build a file called `target/teradata.metabase-driver.jar`; copy this to your Metabase `./plugins` directory.
25 changes: 25 additions & 0 deletions deps.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
:paths [
; before building, you need to turn those into absolute paths
"src"
"resources"
]

; build the driver with `clojure -X:build` assumes that:
; 1. the metabase repo (https://github.com/metabase/metabase) exists in ../metabase
; 2. the correct tag is checked out `git checkout v...`
; 3. `clojure -X:deps prep` was run in ../metabase as well as in ../metabase/modules/drivers
; 4. You have turned the relative :paths above into absolute paths
:aliases {
:build {
;; 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"}
:extra-deps {metabase/metabase-core {:local/root "../metabase"}
metabase/build-drivers {:local/root "../metabase/bin/build-drivers"}}
:exec-fn build-drivers.build-driver/build-driver!
:exec-args {:driver :teradata
:project-dir "."
:target-dir "./target"}

}
}
}
16 changes: 0 additions & 16 deletions project.clj

This file was deleted.

4 changes: 2 additions & 2 deletions resources/metabase-plugin.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
info:
name: Metabase Teradata Driver
version: 1.0.2-teradata-jdbc-17.10
version: 1.0.2-metabase-v0.41.7-teradata-jdbc-17.10
description: Allows Metabase to connect to Teradata databases. Community Supported driver.
dependencies:
- class: com.teradata.jdbc.TeraDriver
message: >
Metabase requires the Teradata terajdbc4.jar and tdgssconfig.jar in order to be able to connect to Teradata databases.
Metabase requires the Teradata terajdbc4.jar in order to be able to connect to Teradata databases.
driver:
name: teradata
display-name: Teradata
Expand Down

0 comments on commit 84f9c23

Please sign in to comment.