Drivers
Databend provides official drivers for multiple programming languages, enabling you to connect and interact with Databend from your applications.
Quick Start
- Choose your language - Select from Python, Go, Node.js, Java, or Rust
- Get your connection string - Use the DSN format below
- Install and connect - Follow the driver-specific documentation
Connection String (DSN)
All Databend drivers use the same DSN (Data Source Name) format:
databend://user:pwd@host[:port]/[database][?sslmode=disable][&arg1=value1]
The
user:pwdrefers to SQL users in Databend. See CREATE USER to create users and grant privileges.
Connection Examples
| Deployment | Connection String |
|---|---|
| Self-hosted | databend://user:pwd@host:8000/database?sslmode=disable |
| Databend Cloud | databend://user:pwd@host:443/database?warehouse=wh |
Parameters Reference
| Parameter | Description | Self-hosted | Databend Cloud | Example |
|---|---|---|---|---|
sslmode | SSL mode | disable (required) | Not used | ?sslmode=disable |
warehouse | Warehouse name | Not used | Required | ?warehouse=compute_wh |
Databend Cloud: Get connection info →
Available Drivers
| Language | Package | Key Features |
|---|---|---|
| Python | databend-driverdatabend-sqlalchemy | • Sync/async support • SQLAlchemy dialect • PEP 249 compatible |
| Go | databend-go | • database/sql interface • Connection pooling • Bulk operations |
| Node.js | databend-driver | • TypeScript support • Promise-based API • Streaming results |
| Java | databend-jdbc | • JDBC 4.0 compatible • Connection pooling • Prepared statements |
| Rust | databend-driver | • Async/await support • Type-safe queries • Zero-copy deserialization |