Skip to content

Commit

Permalink
Make ftmstore cross compatible with SQLAlchemy 1.4 and 2+ (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
catileptic authored Aug 9, 2023
1 parent 1e09162 commit c486356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftmstore/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(
self.prefix = prefix
self.database_uri = database_uri
# config.setdefault('pool_size', 1)
self.engine = create_engine(database_uri, **config)
self.engine = create_engine(database_uri, future=True, **config)
self.is_postgres = self.engine.dialect.name == "postgresql"
self.meta = MetaData()

Expand Down

0 comments on commit c486356

Please sign in to comment.