Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Database > Administrative frontents

    cql 1.2.0

    Download button

    No screenshots available
    Downloads: 608  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Apache Cassandra Development Team | More programs
    The Apache License 2.0 / FREE
    September 13th, 2012, 13:13 GMT
    ROOT / Database / Administrative frontents

     Read user reviews (0)  Refer to a friend  Subscribe

    cql description

    Cassandra Query Language driver

    cql is a Python driver for CQL that adheres to py-dbapi v2 (PEP249, Python Database API Specification v2.0:  http://www.python.org/dev/peps/pep-0249/).

    Standard use:

     >> import cql
     >> con = cql.connect(host, port, keyspace)
     >> cursor = con.cursor()
     >> cursor.execute("CQL QUERY", {kw=Foo, kw2=Bar, etc...})

        - cursor.description  # None initially, list of N tuples that represent
                                  the N columns in a row after an execute. Only
                                  contains type and name info, not values.
        - cursor.rowcount     # -1 initially, N after an execute
        - cursor.arraysize    # variable size of a fetchmany call
        - cursor.fetchone()   # returns  a single row
        - cursor.fetchmany()  # returns  self.arraysize # of rows
        - cursor.fetchall()   # returns  all rows, don't do this.

     >> cursor.execute("ANOTHER QUERY", **more_kwargs)
     >> for row in cursor:  # Iteration is equivalent to lots of fetchone() calls
     >>     doRowMagic(row)

     >> cursor.close()
     >> con.close()

    Query substitution:

     - Use named parameters and a dictionary of names and values. e.g. execute("SELECT * FROM CF WHERE name=:name", name="Foo")


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    Cassandra driver | query language | Python driver | Cassandra | driver | query

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM