FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

IGNITE-12867 DBAPI support by sdarlington · Pull Request #39 · apache/ignite-python-thin-client · GitHub

IGNITE-12867 DBAPI support - #39

Draft
sdarlington wants to merge 5 commits into
apache:masterfrom
sdarlington:ignite-12867-db-api
Draft

sdarlington wants to merge 5 commits into
apache:masterfrom
sdarlington:ignite-12867-db-api

Conversation

Copy link
Copy Markdown

Still a way to go, but basically works.

sdarlington force-pushed the ignite-12867-db-api branch from 5ee99e1 to 74e7785 Compare July 1, 2021 15:38
@@ -0,0 +1,281 @@
#

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I am strongly against to put dependency on sqlalchemy to thin client.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I don't think it should be a mandatory requirement, but support for SQLAlchemy is important. I may yet break this out into a separate PR.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I suppose that it should be additional module. Just start separate module in separate repo.

ivandasch Jul 7, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

We can of course rearrange repo, but it is not a good idea, imho. Currently there is not any options to make it "optional". Just create new module pyignite-sqlalchemy and develope it independently.

ivandasch Jul 7, 2021
edited
Loading

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

And sqlalchemy is not important at all, it is just one of many others ORM, and you can barely find any db driver, that contains anything related to ORM in main repo

"""
self._check_query_started()

if size is None:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I suppose you should use low level API
pyignite.api.sql.sql_fields
pyignite.api.sql.sql_fields_cursor_get_page

You can open cursor using the first call and retrieve next pages using the next call. Please, see how current cursors are implemented.

Comment thread pyignite/dbapi/__init__.py Outdated
@@ -0,0 +1,87 @@
#
# Copyright 2021 GridGain Systems, Inc. and Contributors.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Could you please change file header to appropriate one

threadsafety = 2
paramstyle = 'qmark'

def connect(dsn=None,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

What if ignite node is out? We should support multiple nodes

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL