I am working on an application that uses sqlalchemy for translating machine learning models into SQL code. I need to get the database version from the dialect for debugging purposes.
For Monetdb, the database version is always None, it probably needs to be a tuple.
Some script to reproduce:
import sqlalchemy as sa
lDSN1 = "monetdb://monetdb:monetdb@localhost/db"
engine1 = sa.create_engine(lDSN1, encoding='utf-8', echo=True)
print("INITIALIZE_ENGINE_DRIVER_SERVER_VERSION" , engine1.dialect.driver, engine1.dialect.server_version_info)
Hi,
I am working on an application that uses sqlalchemy for translating machine learning models into SQL code. I need to get the database version from the dialect for debugging purposes.
For Monetdb, the database version is always None, it probably needs to be a tuple.
Some script to reproduce:
Sample outputs (with other databases):
Thanks in advance
Antoine