You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+45-12
Original file line number
Diff line number
Diff line change
@@ -1,28 +1,46 @@
1
-
# Proton driver for Metabase
1
+
# Timeplus Proton Driver for Metabase
2
2
3
-
This repo is a forked from https://github.com/ClickHouse/metabase-clickhouse-driver with necessary revisions to better fit Proton.
3
+
[Timeplus Proton](https://www.timeplus.com/) database driver for the [Metabase](https://metabase.com) ([GitHub](https://github.com/metabase/metabase)) business intelligence tool.
4
4
5
-
## Install
6
-
If you are about to use metabase for the first time, install the proper JVM and start it with `java -jar metabase.jar` to start it for the first time. This will create a plugins folder. Stop the Java process, put the proton.metabase-driver.jar in the plugins folder and start it again.
5
+
This repo is a forked from https://github.com/ClickHouse/metabase-clickhouse-driver with necessary revisions to better fit Timeplus Proton.
7
6
8
-
## Add database
7
+
## Installation
8
+
If you are about to use Metabase for the first time:
9
+
10
+
* install the required JDK version and start it with `java -jar metabase.jar` to start the app. This will create a `plugins/` folder in the current directory.
11
+
* Stop the Java process with <kbd>Ctrl</kbd> + <kbd>C</kbd>, then copy the `proton.metabase-driver.jar` into the `plugins/` folder and restart the app.
12
+
13
+
Here's an example [(using Metabase v0.50.20 and Timeplus Proton driver 0.50.4)](#choosing-the-right-version):
1. Once you've started up Metabase, open http://localhost:3000 , go to "Admin settings" (top-right), then "Databases" tab and add a database and select "Timeplus Proton".
11
-
2. You'll need to provide the Host/Port. Default localhost and 8123 just work.
28
+
2. You'll need to provide the Host/Port. Default `localhost` and `8123` just work.
12
29
13
30
## Run Query
14
-
Please note, with port 8123, by default Proton's query behavior is batch SQL, looking for the past data.
31
+
Please note when set to use port `8123`, Proton's query behavior will default to batch SQL querying, looking for the past data.
15
32
16
-
## Build from source
17
-
The build process is largely based on https://github.com/databendcloud/metabase-databend-driver. (IMHO, Leiningen provides much better compiling error message than the built-in `clojure -X:build:drivers:build/driver`)
33
+
## Build from Source
34
+
The build process is largely based on https://github.com/databendcloud/metabase-databend-driver.
35
+
(IMHO, Leiningen provides much better compiling error message than the built-in `clojure -X:build:drivers:build/driver`)
18
36
19
37
### Prerequisites
20
38
21
39
-[Leiningen](https://leiningen.org/)
22
40
23
41
### Steps
24
42
25
-
1. Clone and build metabase dependency jar.
43
+
1. Clone and build Metabase dependency jar.
26
44
27
45
```shell
28
46
git clone https://github.com/metabase/metabase
@@ -31,7 +49,7 @@ The build process is largely based on https://github.com/databendcloud/metabase-
31
49
cd modules/drivers
32
50
clojure -X:deps prep
33
51
cd ../..
34
-
./bin/build.sh
52
+
clojure -T:build uberjar
35
53
```
36
54
37
55
2. Clone metabase-proton-driver repo
@@ -48,7 +66,7 @@ The build process is largely based on https://github.com/databendcloud/metabase-
Starting with Metabase v0.50.0, ClickHouse adopted a new naming convention for driver releases. The new one is intended to reflect the Metabase version the driver is supposed to run on.
95
+
96
+
For example, the driver version 1.**50.0** means that it should be used with Metabase v0.**50.x** or Metabase EE 1.**50.x**_only_, and it is _not guaranteed_ that this particular version of the driver can work with the previous or the following versions of Metabase.
97
+
98
+
We've adopted the same naming convention for the Timeplus Proton driver since our Metabase driver is a slightly modified version of the ClickHouse Metabase driver.
0 commit comments