php-cassandra-binary icon indicating copy to clipboard operation
php-cassandra-binary copied to clipboard

Allow for setting of the default read/write consistency levels

Open douglaslinsmeyer opened this issue 10 years ago • 1 comments

It is advantageous, particularly in development environments to allow the Cassandra/Database object have it's default consistency level (currently coded to QUORUM) set to a different level without passing in a parameter on all ->query() method calls.

I propose adding setDefaultWriteConsistency($level) and setDefaultReadConsistency($level) which would be respected by Database::query()

I will create a PR if this meets approval.

douglaslinsmeyer avatar Jul 24 '14 14:07 douglaslinsmeyer

Will be implemented in version 0.2.0

evseevnn-zz avatar Jul 25 '14 07:07 evseevnn-zz