The WITH CONSISTENCY removed. How to set it now? #13
Comments
Hi, Possible values are: PDO::CASSANDRA_CONSISTENCYLEVEL_ONE I thought I had put that put that on the README.md. Maybe I forgot to On Sat, Apr 27, 2013 at 7:39 PM, moldcraft notifications@github.com wrote:
|
Thank You |
If set attribute like this $db = new PDO(
'cassandra:host=192.168.1.100;port=9160',
null,
null,
array(
PDO::ATTR_PERSISTENT => true,
PDO::CASSANDRA_ATTR_CONSISTENCYLEVEL => PDO::CASSANDRA_CONSISTENCYLEVEL_QUORUM
)
); instead of this $db->setAttribute(PDO::CASSANDRA_ATTR_CONSISTENCYLEVEL, PDO::CASSANDRA_CONSISTENCYLEVEL_QUORUM); Is that correct? |
yes, it should work as well. On Sat, Apr 27, 2013 at 11:24 PM, moldcraft notifications@github.comwrote:
|
Hey, is there a way, after setting consistency via setAttribute, to check, what consistency level was sent to Cassandra? |
Have you tried this? |
@sandro-lex yeap, getAttribute is not supported "SQLSTATE[IM001]: Driver does not support this function: driver does not support that attribute". But I want to check it more on Cassandra level, I've triet to do it via logs with DEBUG level, but consistency level never show up there. |
I had a glance at the code and it seems that it is not implemented. But You can implement it if you feel like. |
"The WITH CONSISTENCY clause has been removed from CQL 3 commands in the release version of CQL 3. Programmatically, set the consistency level at the driver level. For example, call execute_cql3_query with the required binary query, the compression settings, and consistency level." source
How do I set now consistency?
The text was updated successfully, but these errors were encountered: