Skip to content

Commit

Permalink
fmt with no syntactic changes 🤔
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasaarholt committed Jul 28, 2023
1 parent 6d91670 commit d9a52bc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions py-polars/polars/io/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,12 @@ def _read_sql_connectorx(
return from_arrow(tbl) # type: ignore[return-value]


def _read_sql_adbc(query: str, connection_uri: str, db_kwargs: dict[str, str] | None) -> DataFrame:
with _open_adbc_connection(connection_uri, db_kwargs=db_kwargs) as conn, conn.cursor() as cursor:
def _read_sql_adbc(
query: str, connection_uri: str, db_kwargs: dict[str, str] | None
) -> DataFrame:
with _open_adbc_connection(
connection_uri, db_kwargs=db_kwargs
) as conn, conn.cursor() as cursor:
cursor.execute(query)
tbl = cursor.fetch_arrow_table()
return from_arrow(tbl) # type: ignore[return-value]
Expand Down

0 comments on commit d9a52bc

Please sign in to comment.