Skip to content

Execute Sql Support #159

Closed
Closed

Description

@enescaglar

Hi,

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

Thanks.

Activity

  1. Totktonada commented on Jul 16, 2020

    @Totktonada
    Contributor

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

  2. knazarov commented on Jul 17, 2020

    @knazarov

    @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)

  3. artembo commented on Jul 17, 2020

    @artembo
    Contributor

    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()
    
  4. enescaglar commented on Jul 17, 2020

    @enescaglar
    Author

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

  5. linked a pull request that will close this issueDbapi2 #161on Aug 16, 2020
  6. self-assigned this
    on Aug 19, 2020
  7. added 15 commits that reference this issue on Aug 23, 2020
    d2f5bbf
    3b2052b
    f5d0838
    a2039b1
    302f6df
    7c9238b
    0321e3d
    f3fa4bb
    b2d5ce1
    0bddf32
    a145e63
    74cbe4f
    d542f7b
    4ed14ba
    b98ea48
  8. added 3 commits that reference this issue on Oct 26, 2020
    cc7f5a7
    26063de
    c529767
  9. added a commit that references this issue on Oct 30, 2020
    9d3573e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featureA new functionality

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions