Orange-OpenSource / YACassandraPDO

Cassandra PDO Driver fork
Apache License 2.0
85 stars 32 forks source link

Getting the result of a conditional DELETE or UPDATE #32

Open fantyz opened 11 years ago

fantyz commented 11 years ago

If I do a:

DELETE FROM table WHERE id = 'something' IF field = 'value'

in CQLSH I get the response:

 [applied]
-----------
      True

or

 [applied]
-----------
     False

Is there any way to get this result from the driver somehow making it possible to for use in my code?

sandro-lex commented 10 years ago

Lightweight transactions are avaiable only on Cassandra 2.0.x This PDO driver is suitable for Cassandra 1.2.x Maybe we should waint unitl a 2.1x is out to see the direction it takes before implementing all new CQL features.