2.2 doc updates and fixes by mpenick · Pull Request #247 · apache/cassandra-cpp-driver · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
15 changes: 11 additions & 4 deletions topics/basics/consistency/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ respectively.
## Default consistency

The default consistency is now `CASS_CONSISTENCY_LOCAL_QUORUM` for driver
versions 2.2 and above it was `CASS_CONSISTENCY_ONE` for all previous versions
versions 2.2 and above. It was `CASS_CONSISTENCY_ONE` for all previous versions
(2.1 and below).

## Consistency Levels

### Read and Write Consistency Levels

The consistency level determines the number of replicas on which the read/write must respond/succeed before returning an acknowledgment to the client application. Descriptions and Usage scenarios for each read/write consistency level can be found [here](http://www.datastax.com/documentation/cassandra/2.0/cassandra/dml/dml_config_consistency_c.html).
The consistency level determines the number of replicas on which the read/write
must respond/succeed before returning an acknowledgment to the client
application. Descriptions and Usage scenarios for each read/write consistency
level can be found
[here](http://www.datastax.com/documentation/cassandra/2.0/cassandra/dml/dml_config_consistency_c.html).

<table class="table table-striped table-hover table-condensed">
<thead>
Expand Down Expand Up @@ -85,7 +89,9 @@ The consistency level determines the number of replicas on which the read/write

## Setting Consistency Level

A ['CassStatement'](http://datastax.github.io/cpp-driver/api/CassFuture/) object can have its consistency level altered at anytime before the statement is executed by the session.
A ['CassStatement'](http://datastax.github.io/cpp-driver/api/CassFuture/) object
can have its consistency level altered at anytime before the statement is
executed by the session.

```c
/* Create a simple or prepared statment */
Expand All @@ -94,4 +100,5 @@ A ['CassStatement'](http://datastax.github.io/cpp-driver/api/CassFuture/) object
cass_statement_set_consistency(statement, CASS_CONSISTENCY_QUORUM);
```

**NOTE:** Consistency is ignored for `USE`, `TRUNCATE`, `CREATE` and `ALTER` statements, and some `CASS_CONSISTENCY_ANY` aren’t allowed in all situations.
**NOTE:** Consistency is ignored for `USE`, `TRUNCATE`, `CREATE` and `ALTER`
statements, and some `CASS_CONSISTENCY_ANY` aren’t allowed in all situations.
2 changes: 1 addition & 1 deletion topics/basics/data_types/README.md