DBeaver / DataGrip / VS Code
Last updated
Was this helpful?
Connect the Koinju ClickHouse database from a desktop SQL IDE — DBeaver, JetBrains DataGrip, or VS Code — and run your first query.
Host
the provided database URL
Port
8443
Protocol
HTTPS / SSL enabled
Database
api
User/Password
provided by Koinju
Don't have credentials yet? See How to connect.
Port 8443 is the ClickHouse HTTPS interface and is what every HTTP/JDBC-based driver below uses. 9440 is the alternative native-protocol-over-TLS port (used only by the native CLI client).
Database ▸ New Database Connection.
Pick ClickHouse from the list, click Next.
On the Main tab set:
Host: the provided database URL
Port: 8443
Database/Schema: api
Username / Password: provided by Koinju
Open the SSL tab and tick Use SSL.
Click Test Connection (DBeaver will offer to download the ClickHouse driver the first time — accept).
Finish.
File ▸ New ▸ Data Source ▸ ClickHouse. DataGrip auto-downloads the JDBC driver on first use.
Set the connection either by fields (Host = provided database URL, Port = 8443, Database = api) or by pasting the URL directly:
Enter the User and Password provided by Koinju.
Click Test Connection, then OK.
Install the SQLTools extension and the SQLTools ClickHouse Driver from the VS Code Marketplace.
Add a new connection with:
Host: the provided database URL
Port: 8443
SSL: true
Database: api
User / Password: provided by Koinju
Connect and open a new SQL editor against the connection.
Run this in the IDE's SQL editor:
If you get ~20 rows back, you're connected. Next, explore what data is available in Data.
Last updated
Was this helpful?
Was this helpful?
jdbc:clickhouse://<host>:8443/api?ssl=trueSELECT exchange, market, timestamp, price
FROM api.trade
WHERE market LIKE 'BTC%' AND timestamp > toStartOfDay(now())
ORDER BY timestamp DESC LIMIT 20