cql

Software kuvakaappaus:
cql
Ohjelmiston tiedot:
Versio: 1.2.0
Lähetyksen päivämäärä: 20 Feb 15
Lupa: Vapaa
Suosio: 23

Rating: 2.0/5 (Total Votes: 1)

CQL on Python ajuri CQL joka tarttuu py-dbapi v2 & nbsp; (PEP249, Python Database API Specification v2.0: & nbsp; http://www.python.org/dev/peps/pep-0249/) .
Vakio käyttö:
& Nbsp; >> tuonti CQL
& Nbsp; >> con = cql.connect (isäntä, satama, KEYSPACE)
& Nbsp; >> kohdistin = con.cursor ()
& Nbsp; >> cursor.execute ("CQL QUERY", {kw = Foo, kw2 = Baari, jne ...})
& Nbsp; & nbsp; & nbsp; - Cursor.description & nbsp; # Ei mitään aluksi, luettelo N tuplat, jotka edustavat
                              N sarakkeet peräkkäin jälkeen suorita. Vain
                              sisältää tyyppi ja nimi info, ei arvoja.
& Nbsp; & nbsp; & nbsp; - Cursor.rowcount & nbsp; & nbsp; & nbsp; & nbsp; # -1 Aluksi, N jälkeen suorita
& Nbsp; & nbsp; & nbsp; - Cursor.arraysize & nbsp; & nbsp; & nbsp; # Muuttuva koko fetchmany puhelun
& Nbsp; & nbsp; & nbsp; - Cursor.fetchone () & nbsp; & nbsp; # Palaa & nbsp; yhden rivin
& Nbsp; & nbsp; & nbsp; - Cursor.fetchmany () & nbsp; # Palaa & nbsp; self.arraysize # rivien
& Nbsp; & nbsp; & nbsp; - Cursor.fetchall () & nbsp; & nbsp; # Palaa & nbsp; kaikki rivit, älä tee tätä.
& Nbsp; >> cursor.execute ("Toinen haku", ** more_kwargs)
& Nbsp; >> riville kursori: & nbsp; # Iterointi vastaa paljon fetchone () puhelut
& Nbsp; >> & nbsp; & nbsp; & nbsp; & nbsp; doRowMagic (rivi)
& Nbsp; >> cursor.close ()
& Nbsp; >> con.close ()
Kysely vaihdosta:
& Nbsp; - Käytä nimettyjä parametreja ja sanakirjan nimiä ja arvoja. esim. suorita ("SELECT * FROM CF WHERE nimi =: nimi", name = "Foo")

Vaatimukset :

  • Python

Vastaavia ohjelmistoja

Qore OpenGL Module
Qore OpenGL Module

20 Feb 15

Spring Framework
Spring Framework

17 Feb 15

psycopg
psycopg

12 May 15

Kommentit cql

Kommentteja ei löytynyt
Lisää kommentti
Ota kuvia!