From 61417e77a23eb2ce4f2d8898fe99ac09cf528828 Mon Sep 17 00:00:00 2001 From: Thomas Aarholt Date: Thu, 27 Jul 2023 15:48:30 +0200 Subject: [PATCH] rename --- py-polars/polars/io/database.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/py-polars/polars/io/database.py b/py-polars/polars/io/database.py index 7ce1e1ae92cce..97c7612b40f4e 100644 --- a/py-polars/polars/io/database.py +++ b/py-polars/polars/io/database.py @@ -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. @@ -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. @@ -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.")