diff --git a/README.md b/README.md index a480b40..b9f17aa 100644 --- a/README.md +++ b/README.md @@ -63,10 +63,17 @@ You require metabase to be installed alongside of your project ``` ## Build -1. modify :paths in deps.edn, make them absolute -2. `clojure -X:build :project-dir "\"$(pwd)\""` +1. under the metabase folder, check out the desired branch +2. create a link to the right location to the driver: +``` +DRIVER_PATH=`readlink -f /home/user/metadata-teradata-driver/` +``` +3. +``` + clojure -Sdeps "{:aliases {:teradata {:extra-deps {com.metabase/teradata-driver {:local/root \"$DRIVER_PATH\"}}}}}" -X:build:teradata build-drivers.build-driver/build-driver! "{:driver :teradata :project-dir \"$DRIVER_PATH\", :target-dir \"$DRIVER_PATH/target\"}" +``` -This will build a file called `target/teradata.metabase-driver.jar`; copy this to your Metabase `./plugins` directory. +This will build a file called `target/teradata.metabase-driver.jar` under the driver folder; copy this to your Metabase `./plugins` directory. ## Tests diff --git a/deps.edn b/deps.edn index 3233166..4869fd8 100644 --- a/deps.edn +++ b/deps.edn @@ -21,7 +21,7 @@ :aliases {:dev {:extra-deps - { io.github.metabase/metabase { :git/tag "v0.46.0", :git/sha "0ca7df3" } } + { io.github.metabase/metabase { :git/tag "v0.46.6", :git/sha "1bb88f5" } } } } } diff --git a/resources/metabase-plugin.yaml b/resources/metabase-plugin.yaml index 4cb56c6..456d8af 100644 --- a/resources/metabase-plugin.yaml +++ b/resources/metabase-plugin.yaml @@ -1,7 +1,7 @@ info: name: Metabase Teradata Driver # also replace the version in deps.edn if you change the metabase version here - version: 1.1.0-metabase-v0.46.0-teradata-jdbc-17.10 + version: 1.1.0-metabase-v0.46.6-teradata-jdbc-17.10 description: Allows Metabase to connect to Teradata databases. Community Supported driver. dependencies: - class: com.teradata.jdbc.TeraDriver @@ -37,7 +37,7 @@ driver: - additional-options - placeholder: e.g. COPLAST=OFF # required in order that `Choose when syncs and scans happen` shows up in database options afterwards - # (during first time setup, you only see `Periodically refingerprint tables` in metabase v0.46.0 + # (during first time setup, you only see `Periodically refingerprint tables` in metabase v0.46.6 # the option `Choose when syncs and scans happen` only shows up later in admin -> Database -> advanced options) - default-advanced-options connection-properties-include-tunnel-config: false