Skip to content

Execute Sql Support #159

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

Closed
enescaglar opened this issue Jul 16, 2020 · 4 comments · Fixed by #161
Closed

Execute Sql Support #159

enescaglar opened this issue Jul 16, 2020 · 4 comments · Fixed by #161
Assignees
Labels
feature A new functionality

Comments

@enescaglar
Copy link

Hi,

Does this library support executing SQL? I can't find it but just wanted to clarify.

Thanks.

@Totktonada
Copy link
Member

AFAIK, @robinhood23rus and @artembo did some work in this direction. Maybe they will update us with current status.

@Totktonada Totktonada added the feature A new functionality label Jul 16, 2020
@knazarov
Copy link

@artembo has implemented python-compatible DB API. He will create a pull-request eventually.
He did it in order to add support for Tarantool in Django ORM (which by the way worked out well enough)

@artembo
Copy link
Contributor

artembo commented Jul 17, 2020

Hi

I partially implemented dpapi2.0 interface for the connector in dbapi module which is enough for running Tarantool with Django using django-tarantool database backend.

All these changes are available on the branch dbapi2 at the moment and will be merged in master soon.

How to get started working with SQL without Django in any Python application:

$ pip install git+https://github.com/tarantool/tarantool-python@dbapi2 

When dbapi module is in the master branch you'll be able to install the package with SQL by pip install tarantool
Then you can execute SQL like:

from tarantool.dbapi import Connection

c = Connection('127.0.0.1', 3301, "username", "password")
cursor = c.cursor()
cursor.execute('select * from "space_name"')

data = cursor.fetchall()

@enescaglar
Copy link
Author

Thank you all for your answers. It's good to hear, changes will be merged soon.

@artembo artembo linked a pull request Aug 16, 2020 that will close this issue
@Totktonada Totktonada mentioned this issue Aug 18, 2020
@artembo artembo self-assigned this Aug 19, 2020
artembo added a commit that referenced this issue Aug 23, 2020
Closes #159

Co-authored-by Denis Ignatenko <denis.ignatenko@gamil.com>
artembo added a commit that referenced this issue Aug 24, 2020
Closes #159

Co-authored-by Denis Ignatenko <denis.ignatenko@gamil.com>
artembo added a commit that referenced this issue Aug 24, 2020
Closes #159

Co-authored-by Denis Ignatenko <denis.ignatenko@gamil.com>
artembo added a commit that referenced this issue Aug 24, 2020
Closes #159

Co-authored-by Denis Ignatenko <denis.ignatenko@gamil.com>
artembo added a commit that referenced this issue Aug 24, 2020
Closes #159

Co-authored-by Denis Ignatenko <denis.ignatenko@gamil.com>
artembo added a commit that referenced this issue Aug 25, 2020
Closes #159

Co-authored-by Denis Ignatenko <denis.ignatenko@gamil.com>
artembo added a commit that referenced this issue Aug 27, 2020
Closes #159

Co-authored-by Denis Ignatenko <denis.ignatenko@gamil.com>
artembo added a commit that referenced this issue Aug 27, 2020
Closes #159

Co-authored-by Denis Ignatenko <denis.ignatenko@gamil.com>
artembo added a commit that referenced this issue Aug 30, 2020
Closes #159

Co-authored-by Denis Ignatenko <denis.ignatenko@gamil.com>
artembo added a commit that referenced this issue Aug 31, 2020
Closes #159

Co-authored-by Denis Ignatenko <denis.ignatenko@gamil.com>
artembo added a commit that referenced this issue Sep 1, 2020
Closes #159

Co-authored-by Denis Ignatenko <denis.ignatenko@gamil.com>
artembo added a commit that referenced this issue Sep 1, 2020
Closes #159

Co-authored-by Denis Ignatenko <denis.ignatenko@gamil.com>
artembo added a commit that referenced this issue Sep 6, 2020
Closes #159

Co-authored-by Denis Ignatenko <denis.ignatenko@gamil.com>
artembo added a commit that referenced this issue Sep 6, 2020
Closes #159

Co-authored-by Denis Ignatenko <denis.ignatenko@gamil.com>
artembo added a commit that referenced this issue Oct 26, 2020
Closes #159

Co-authored-by: Denis Ignatenko <denis.ignatenko@gmail.com>
artembo added a commit that referenced this issue Oct 28, 2020
Closes #159

Co-authored-by: Denis Ignatenko <denis.ignatenko@gmail.com>
artembo added a commit that referenced this issue Oct 30, 2020
Closes #159

Co-authored-by: Denis Ignatenko <denis.ignatenko@gmail.com>
Totktonada pushed a commit that referenced this issue Oct 30, 2020
Closes #159

Co-authored-by: Denis Ignatenko <denis.ignatenko@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants