diff --git a/cratedb_toolkit/adapter/pymongo/collection.py b/cratedb_toolkit/adapter/pymongo/collection.py index 523f80d9..2276f02d 100644 --- a/cratedb_toolkit/adapter/pymongo/collection.py +++ b/cratedb_toolkit/adapter/pymongo/collection.py @@ -94,7 +94,7 @@ def insert_returning_id(pd_table, conn, keys, data_iter): data.to_sql( name=self.name, schema=self.database.name, - con=cratedb.engine, + con=cratedb.connection.connection, index=False, # TODO: Handle `append` vs. `replace`. if_exists="append", @@ -144,7 +144,7 @@ def gen() -> Iterator[Mapping[str, Any]]: data.to_sql( name=self.name, schema=self.database.name, - con=cratedb.engine, + con=cratedb.connection.connection, index=False, # TODO: Handle `append` vs. `replace`. if_exists="append", diff --git a/pyproject.toml b/pyproject.toml index 431f22f0..df06bd71 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -177,7 +177,7 @@ mongodb = [ ] pymongo = [ "jessiql==1.0.0rc1", - "pandas==2.1.*", + "pandas<2.3", "pymongo<4.9", "sqlalchemy<2", ]