Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

upgrade to connector 2.0.x #4

Merged
merged 1 commit into from
May 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
python 3.8.2
poetry 1.1.11
poetry 1.1.12
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
![pypi](https://img.shields.io/pypi/v/sqlalchemy-databricks.svg)
![pyversions](https://img.shields.io/pypi/pyversions/sqlalchemy-databricks.svg)

A SQLAlchemy Dialect for Databricks using the officially supported ``databricks-sql-connector`` dbapi. Compatible with workspace and sql analytics clusters. (Thanks to [@Tom-Newton](https://github.com/Tom-Newton) for pointing this out)
A SQLAlchemy Dialect for Databricks workspace and sql analytics clusters using the officially supported [databricks-sql-connector](https://pypi.org/project/databricks-sql-connector/) dbapi.

## Installation

Expand All @@ -23,8 +23,10 @@ from sqlalchemy.engine import create_engine


engine = create_engine(
"databricks+connector://token:<databricks_token>@<databricks_host>:443/default",
connect_args={"http_path": "<cluster_http_path>"}
"databricks+connector://token:<databricks_token>@<databricks_host>:443/<database_or_schema_name>",
connect_args={
"http_path": "<cluster_http_path>",
},
)

logs = Table("my_table", MetaData(bind=engine), autoload=True)
Expand Down
Loading