diff --git a/.gitignore b/.gitignore index 04fc6b3..099f17a 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /.idea /.venv* /dist +/doc/_build /tmp /var .DS_Store diff --git a/CHANGES.rst b/CHANGES.rst index 12f7e20..183f527 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -5,6 +5,8 @@ Changelog in progress =========== +- SQLAlchemy Dialect: Dependencies: Use `sqlalchemy-cratedb>=0.37.0` + This includes the fix to the `get_table_names()` reflection method. 2024-06-11 v0.3.0 ================= diff --git a/doc/backlog.rst b/doc/backlog.rst index f34a6d6..fa7dc5c 100644 --- a/doc/backlog.rst +++ b/doc/backlog.rst @@ -25,7 +25,6 @@ Iteration +1 ************ Iteration +2 ************ -- [o] Fix ``cratedb_toolkit.sqlalchemy.patch_inspector()`` re. reflection of ``?schema=`` URL parameter - [o] Fix ``crate.client.sqlalchemy.dialect.DateTime`` re. ``TimezoneUnawareException`` - [o] Support InfluxDB 1.x and 3.x - [o] Add Docker Compose file for auxiliary services diff --git a/influxio/io.py b/influxio/io.py index 9e49f75..b108dea 100644 --- a/influxio/io.py +++ b/influxio/io.py @@ -119,10 +119,6 @@ def dataframe_to_sql( pbar.register() if dburi.startswith("crate"): - # TODO: Submit patch to upstream `crate-python`. This is another proof that something is wrong. - from cratedb_toolkit.sqlalchemy import patch_inspector - - patch_inspector() # Use performance INSERT method. try: diff --git a/pyproject.toml b/pyproject.toml index 8fd6901..e5a3c79 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -95,7 +95,7 @@ dependencies = [ "pandas<2.3", "psycopg2-binary<3", "pueblo>=0.0.7", - "sqlalchemy-cratedb", + "sqlalchemy-cratedb>=0.37,<1", "SQLAlchemy-Utils<0.42", "yarl<2", ]