Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to Ignite DB #1

Open
SivaSankariRamamoorthy opened this issue Nov 22, 2022 · 0 comments
Open

Unable to connect to Ignite DB #1

SivaSankariRamamoorthy opened this issue Nov 22, 2022 · 0 comments

Comments

@SivaSankariRamamoorthy
Copy link

To connect to Ignite DB, I followed the steps given in the doc https://github.com/predictiveworks/sqlalchemy-ignite/blob/main/README.rst, but I have couple of queries in it.
In the doc, it is mentioned as

from sqlalchemy.engine import create_engine
connect_args = {
'servers': '127.0.0.1:10800',
'timeout': 20.0,
engine = engine("ignite://", connect_args = connect_args)

Shouldn't we use create_engine here? If not, we need a change in import stmt.

I used create_engine method and tried running the following code but got error.

from sqlalchemy.engine import create_engine
engine = create_engine("ignite://user:password@dbhost:port/dbname")

sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:ignite

Could be helpful if I get a help in understanding if I'm missing anything here? Thanks in advance

Note - I also added lines to register the dialect as I got error just with the installation of sqlalchemy-ignite as well.!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant