cql

Software screenshot:
cql
Software ətraflı:
Version: 1.2.0
Tarixi Upload: 20 Feb 15
Lisenziya: Pulsuz
Məşhurluq: 109

Rating: 3.0/5 (Total Votes: 3)

cql bir Python py-dbapi v2 & nbsp əməl CQL üçün sürücü (PEP249, Python Database API Specification v2.0: & nbsp; http://www.python.org/dev/peps/pep-0249/) .
Standart istifadə:
& Nbsp; >> idxal cql
& Nbsp; >> con = cql.connect (host, port, keyspace)
& Nbsp; >> kursor = con.cursor ()
& Nbsp; >> cursor.execute ("CQL Sorğu" {kw = Foo, KW2 = Bar, və s ...})
& Nbsp; & nbsp; & nbsp; - Cursor.description & nbsp; Ilkin # Yox təmsil N tuples siyahısı
                              Bir sonra bir sıra N sütun icra. Yalnız
                              növü və adı info deyil, dəyərlər var.
& Nbsp; & nbsp; & nbsp; - Cursor.rowcount & nbsp; & nbsp; & nbsp; & nbsp; # -1 Ilkin N sonra icra
& Nbsp; & nbsp; & nbsp; - Cursor.arraysize & nbsp; & nbsp; & nbsp; Bir fetchmany zəng # dəyişən ölçüsü
& Nbsp; & nbsp; & nbsp; - Cursor.fetchone () & nbsp; & nbsp; # Yekunları & nbsp; bir sıra
& Nbsp; & nbsp; & nbsp; - Cursor.fetchmany () & nbsp; # Yekunları & nbsp; satır self.arraysize #
& Nbsp; & nbsp; & nbsp; - Cursor.fetchall () & nbsp; & nbsp; # Yekunları & nbsp; Bütün satırlar, bu yoxdur.
& Nbsp; >> cursor.execute ("BİR QUERY" ** more_kwargs)
& Nbsp; >> kursor sıra üçün: & nbsp; # İterasiya fetchone çox bərabərdir () zənglər
& Nbsp; >> & nbsp; & nbsp; & nbsp; & nbsp; doRowMagic (sıra)
& Nbsp; >> cursor.close ()
& Nbsp; >> con.close ()
Query əvəzetmə:
& Nbsp; - İstifadə parametrləri və adları və dəyərlər lüğət adına. məsələn icra ("SELECT * FROM HARADA CF name =: adı", name = "Foo")

tələblər

  • Python

Oxşar proqram

Jet Profiler
Jet Profiler

20 Feb 15

Glom
Glom

14 Jul 16

nflgame
nflgame

20 Feb 15

micromongo
micromongo

14 Apr 15

Şərh cql

Şərhlər tapılmadı
Şərh əlavə
Images yandırın!