Skip to content

Latest commit

 

History

History
117 lines (80 loc) · 3.2 KB

File metadata and controls

117 lines (80 loc) · 3.2 KB

dbc dbc Logo

License GitHub release (latest SemVer) Release dbc

dbc is the command-line tool for installing and managing ADBC drivers.

Install dbc

Shell (Linux/macOS)

curl -LsSf https://dbc.columnar.tech/install.sh | sh

Homebrew

brew install columnar-tech/tap/dbc

uv

uv tool install dbc

pipx

pipx install dbc

PowerShell (Windows)

powershell -ExecutionPolicy ByPass -c irm https://dbc.columnar.tech/install.ps1 | iex

WinGet

winget install dbc

Windows MSI

Download the MSI installer

For more installation options, see the installation docs.

Getting Started

Search for available drivers:

dbc search

Install a driver:

dbc install snowflake

Use it with Python:

pip install "adbc-driver-manager>=1.8.0"
import adbc_driver_manager.dbapi as adbc

with adbc.connect(
    driver="snowflake",
    db_kwargs={
        "username": "USER",
        "password": "PASS",
        "adbc.snowflake.sql.account": "ACCOUNT-IDENT",
        # ... other connection options
    },
) as con, con.cursor() as cursor:
    cursor.execute("SELECT * FROM CUSTOMER LIMIT 5")
    print(cursor.fetch_arrow_table())

You can also manage drivers in a project using a driver list. And you can store connection options in a connection profile instead of in your code.

For more details, see the dbc documentation and the ADBC Quickstarts.

Communications

Code of Conduct

By contributing to dbc, you agree to follow our Code of Conduct.