📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

Connect to TiDB Cloud Lake Using Drivers



TiDB Cloud Lake provides official drivers for multiple programming languages, enabling you to connect and interact with TiDB Cloud Lake 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 TiDB Cloud Lake drivers use the same DSN (Data Source Name) format:

lake://user:pwd@host[:port]/[database][?sslmode=disable][&arg1=value1]

Connection Examples

DeploymentConnection String
TiDB Cloud Lakelake://user:pwd@host:443/database?warehouse=wh

Parameters Reference

ParameterDescriptionTiDB Cloud LakeExample
sslmodeSSL modeNot used?sslmode=disable
warehouseWarehouse nameRequired?warehouse=compute_wh

TiDB Cloud Lake: Get connection info →

Available Drivers

LanguagePackageKey Features
Pythontidbcloudlake-driver
lake-sqlalchemy
• Sync/async support
• SQLAlchemy dialect
• PEP 249 compatible
Golake-go• database/sql interface
• Connection pooling
• Bulk operations
Node.jstidbcloudlake-driver• TypeScript support
• Promise-based API
• Streaming results
Javalake-jdbc• JDBC 4.0 compatible
• Connection pooling
• Prepared statements
Rustlake-driver• Async/await support
• Type-safe queries
• Zero-copy deserialization

Was this page helpful?