Skip to main content

Drivers

Databend provides official drivers for multiple programming languages, enabling you to connect and interact with Databend from your applications.

Quick Start

  1. Choose your language - Select from Python, Go, Node.js, Java, or Rust
  2. Get your connection string - Use the DSN format below
  3. 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:pwd refers to SQL users in Databend. See CREATE USER to create users and grant privileges.

Connection Examples

DeploymentConnection String
Self-hosteddatabend://user:pwd@host:8000/database?sslmode=disable
Databend Clouddatabend://user:pwd@host:443/database?warehouse=wh

Parameters Reference

ParameterDescriptionSelf-hostedDatabend CloudExample
sslmodeSSL modedisable (required)Not used?sslmode=disable
warehouseWarehouse nameNot usedRequired?warehouse=compute_wh

Databend Cloud: Get connection info →

Available Drivers

LanguagePackageKey Features
Pythondatabend-driver
databend-sqlalchemy
• Sync/async support
• SQLAlchemy dialect
• PEP 249 compatible
Godatabend-go• database/sql interface
• Connection pooling
• Bulk operations
Node.jsdatabend-driver• TypeScript support
• Promise-based API
• Streaming results
Javadatabend-jdbc• JDBC 4.0 compatible
• Connection pooling
• Prepared statements
Rustdatabend-driver• Async/await support
• Type-safe queries
• Zero-copy deserialization
Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today