Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasaarholt committed Jul 27, 2023
1 parent 857bbcd commit 61417e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py-polars/polars/io/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def read_database(
partition_num: int | None = None,
protocol: str | None = None,
engine: DbReadEngine = "connectorx",
adbc_db_kwargs: dict[str, str] | None = None,
adbc_options: dict[str, str] | None = None,
) -> DataFrame:
"""
Read a SQL query into a DataFrame.
Expand Down Expand Up @@ -61,7 +61,7 @@ def read_database(
an up-to-date list of drivers please see the ADBC docs:
* https://arrow.apache.org/adbc/
adbc_db_kwargs
adbc_options
Any additional arguments to pass to adbc ``connect()``, see
https://arrow.apache.org/adbc/main/driver/snowflake.html#snowflake-driver
for available options.
Expand Down Expand Up @@ -126,7 +126,7 @@ def read_database(
elif engine == "adbc":
if not isinstance(query, str):
raise ValueError("Only a single SQL query string is accepted for adbc.")
return _read_sql_adbc(query, connection_uri, db_kwargs=adbc_db_kwargs)
return _read_sql_adbc(query, connection_uri, db_kwargs=adbc_options)
else:
raise ValueError(f"Engine {engine!r} not implemented; use connectorx or adbc.")

Expand Down

0 comments on commit 61417e7

Please sign in to comment.