Skip to content

Commit

Permalink
Added tinyint/smallint/date/time examples and updated release for v1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenick committed Jul 18, 2016
1 parent 29a03cf commit 84035aa
Show file tree
Hide file tree
Showing 6 changed files with 201 additions and 30 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# 1.2.0

Features:

* Added support for `tinyint` and `smallint` types
* Added support for `date` and `time` types
* Added support for secondary index metadata
* Added support for UDF/UDA metadata
* Added support for materialized view metadata
* Added blacklist and whitelist datacenter and host policies

Bug Fixes:

* [PHP-100] Whitelist/Blacklist LB setting should update the cluster builder hash key
* [PHP-101] Memory leak when paging results

# 1.1.0

Features:
Expand Down
19 changes: 8 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,21 @@ A modern, [feature-rich](features) and highly tunable PHP client library for [Ap

This is a wrapper around [the DataStax C/C++ Driver for Apache Cassandra and DataStax Enterprise](http://datastax.github.io/cpp-driver/).

* Binaries: [http://downloads.datastax.com/php-driver/1.1.0](http://downloads.datastax.com/php-driver/1.1.0/)
* Binaries: [http://downloads.datastax.com/php-driver/1.2.0](http://downloads.datastax.com/php-driver/1.2.0/)
* Docs: [http://datastax.github.io/php-driver/](http://datastax.github.io/php-driver/)
* Code: [https://github.com/datastax/php-driver](https://github.com/datastax/php-driver)
* Jira: [https://datastax-oss.atlassian.net/browse/PHP](https://datastax-oss.atlassian.net/browse/PHP)
* Mailing List: [https://groups.google.com/a/lists.datastax.com/forum/#!forum/php-driver-user](https://groups.google.com/a/lists.datastax.com/forum/#!forum/php-driver-user)
* IRC: #datastax-drivers on [irc.freenode.net](http://freenode.net>)
* Twitter: Follow the latest news about DataStax Drivers - [@avalanche123](http://twitter.com/avalanche123), [@al3xandru](https://twitter.com/al3xandru)

## What's new in v1.1.0:
## What's new in v1.2.0:

* Support for PHP 7
* [User defined types](http://datastax.github.io/php-driver/features/user_defined_types/)
* [Tuples](http://datastax.github.io/php-driver/features/tuples/)
* [Nested collection](http://datastax.github.io/php-driver/features/collections/#using-cassandra-nested-collections)
* [Client-side timestamps](http://datastax.github.io/php-driver/features/client_side_timestamps/)
* [Retry policies](http://datastax.github.io/php-driver/features/retry_polices/)
* [Named parameters](http://datastax.github.io/php-driver/features/simple_statements/#simple-statements-also-support-named-arguments)
* [Raw paging token access](http://datastax.github.io/php-driver/features/result_paging/#use-paging-state-token-to-get-next-result)
* Full support for Apache Cassandra 2.2 and 3.0+
* Support for [`tinyint` and `smallint`](http://datastax.github.io/php-driver/features/datatypes/#using-cassandra-the-tinyint-and-smallint-types)
* Support for [`date`](http://datastax.github.io/php-driver/features/datatypes/#using-cassandra-date-type) and [`time`](http://datastax.github.io/php-driver/features/http://localhost:8000/features/datatypes/#using-cassandra-time-type)
* Support for [user-defined function and aggregate](http://datastax.github.io/php-driver/features/function_and_aggregate_metadata) metadata
* Support for [secondary index](http://datastax.github.io/php-driver/features/secondary_index_metadata) and [materialize view](http://datastax.github.io/php-driver/features/function_and_aggregate_metadata) metadata

## Feedback Requested

Expand Down Expand Up @@ -62,7 +59,7 @@ pecl install cassandra
This driver works exclusively with the Cassandra Query Language v3 (CQL3) and
Cassandra's native protocol. The current version works with:

* Apache Cassandra versions 1.2, 2.0 and 2.1
* Apache Cassandra versions 1.2, 2.0, 2.1, 2.2 and 3.0+
* DataStax Enterprise 3.1, 3.2, 4.0 and 4.5
* PHP 5.5+ and PHP 7.0+
* Compilers: GCC 4.1.2+, Clang 3.4+, and MSVC 2010/2012/2013/2015
Expand Down
4 changes: 3 additions & 1 deletion docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ links:
- title: Releases
href: https://github.com/datastax/php-driver/releases
versions:
- name: v1.1.0
- name: v1.2.0
ref: HEAD
- name: v1.1.0
ref: v1.1.0
- name: v1.0.1
ref: v1.0.1
- name: v1.0.0
Expand Down
62 changes: 47 additions & 15 deletions ext/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,35 +14,33 @@ protocol and Cassandra Query Language v3.
<email>[email protected]</email>
<active>yes</active>
</lead>
<date>2016-02-11</date>
<time>10:16:05</time>
<date>2016-07-18</date>
<time>11:29:26</time>
<version>
<release>1.1.0</release>
<api>1.1.0</api>
<release>1.2.0</release>
<api>1.2.0</api>
</version>
<stability>
<release>stable</release>
<api>stable</api>
</stability>
<license uri="http://www.apache.org/licenses/LICENSE-2.0">Apache License 2.0</license>
<notes>
# 1.1.0
# 1.2.0

Features:

* Added support for PHP 7
* Added support for UDTs and tuples
* Added support for nested collections
* Added access to raw paging token (via `Cassandra\Rows::pagingStateToken()`)
* Added support for client-side timestamps and timestamp generators
* Added support for retry policys (includes logging, downgrading and fallthrough)
* Added the ability to disable schema metadata updates (via `Cassandra\Cluster\withSchemaMetdata()`)
* Added support for using named arguments with `Cassandra\SimpleStatement`
* Changed the default consistency to `LOCAL_ONE` (from `ONE`)
* Added support for `tinyint` and `smallint` types
* Added support for `date` and `time` types
* Added support for secondary index metadata
* Added support for UDF/UDA metadata
* Added support for materialized view metadata
* Added blacklist and whitelist datacenter and host policies

Bug Fixes:

* [PHP-70] Fixed invalid encoding of decimals and varints
* [PHP-100] Whitelist/Blacklist LB setting should update the cluster builder hash key
* [PHP-101] Memory leak when paging results
</notes>
<contents>
<dir name="/">
Expand All @@ -52,6 +50,7 @@ Bug Fixes:
<file role="src" name="php_cassandra.h" />
<file role="src" name="php_cassandra_types.h" />
<file role="src" name="src/Cassandra.c" />
<file role="src" name="src/Cassandra/Aggregate.c" />
<file role="src" name="src/Cassandra/BatchStatement.c" />
<file role="src" name="src/Cassandra/Bigint.c" />
<file role="src" name="src/Cassandra/Bigint.h" />
Expand All @@ -62,14 +61,25 @@ Bug Fixes:
<file role="src" name="src/Cassandra/Collection.c" />
<file role="src" name="src/Cassandra/Collection.h" />
<file role="src" name="src/Cassandra/Column.c" />
<file role="src" name="src/Cassandra/Date.c" />
<file role="src" name="src/Cassandra/Date.h" />
<file role="src" name="src/Cassandra/Decimal.c" />
<file role="src" name="src/Cassandra/Decimal.h" />
<file role="src" name="src/Cassandra/DefaultAggregate.c" />
<file role="src" name="src/Cassandra/DefaultCluster.c" />
<file role="src" name="src/Cassandra/DefaultColumn.c" />
<file role="src" name="src/Cassandra/DefaultColumn.h" />
<file role="src" name="src/Cassandra/DefaultFunction.c" />
<file role="src" name="src/Cassandra/DefaultFunction.h" />
<file role="src" name="src/Cassandra/DefaultIndex.c" />
<file role="src" name="src/Cassandra/DefaultIndex.h" />
<file role="src" name="src/Cassandra/DefaultKeyspace.c" />
<file role="src" name="src/Cassandra/DefaultMaterializedView.c" />
<file role="src" name="src/Cassandra/DefaultMaterializedView.h" />
<file role="src" name="src/Cassandra/DefaultSchema.c" />
<file role="src" name="src/Cassandra/DefaultSession.c" />
<file role="src" name="src/Cassandra/DefaultTable.c" />
<file role="src" name="src/Cassandra/DefaultTable.h" />
<file role="src" name="src/Cassandra/Exception.c" />
<file role="src" name="src/Cassandra/Exception/AlreadyExistsException.c" />
<file role="src" name="src/Cassandra/Exception/AuthenticationException.c" />
Expand Down Expand Up @@ -98,17 +108,20 @@ Bug Fixes:
<file role="src" name="src/Cassandra/ExecutionOptions.c" />
<file role="src" name="src/Cassandra/Float.c" />
<file role="src" name="src/Cassandra/Float.h" />
<file role="src" name="src/Cassandra/Function.c" />
<file role="src" name="src/Cassandra/Future.c" />
<file role="src" name="src/Cassandra/FutureClose.c" />
<file role="src" name="src/Cassandra/FuturePreparedStatement.c" />
<file role="src" name="src/Cassandra/FutureRows.c" />
<file role="src" name="src/Cassandra/FutureSession.c" />
<file role="src" name="src/Cassandra/FutureValue.c" />
<file role="src" name="src/Cassandra/Index.c" />
<file role="src" name="src/Cassandra/Inet.c" />
<file role="src" name="src/Cassandra/Inet.h" />
<file role="src" name="src/Cassandra/Keyspace.c" />
<file role="src" name="src/Cassandra/Map.c" />
<file role="src" name="src/Cassandra/Map.h" />
<file role="src" name="src/Cassandra/MaterializedView.c" />
<file role="src" name="src/Cassandra/Numeric.c" />
<file role="src" name="src/Cassandra/PreparedStatement.c" />
<file role="src" name="src/Cassandra/RetryPolicy.c" />
Expand All @@ -124,15 +137,22 @@ Bug Fixes:
<file role="src" name="src/Cassandra/Set.c" />
<file role="src" name="src/Cassandra/Set.h" />
<file role="src" name="src/Cassandra/SimpleStatement.c" />
<file role="src" name="src/Cassandra/Smallint.c" />
<file role="src" name="src/Cassandra/Smallint.h" />
<file role="src" name="src/Cassandra/Statement.c" />
<file role="src" name="src/Cassandra/Table.c" />
<file role="src" name="src/Cassandra/Table.h" />
<file role="src" name="src/Cassandra/Time.c" />
<file role="src" name="src/Cassandra/Time.h" />
<file role="src" name="src/Cassandra/Timestamp.c" />
<file role="src" name="src/Cassandra/Timestamp.h" />
<file role="src" name="src/Cassandra/TimestampGenerator.c" />
<file role="src" name="src/Cassandra/TimestampGenerator/Monotonic.c" />
<file role="src" name="src/Cassandra/TimestampGenerator/ServerSide.c" />
<file role="src" name="src/Cassandra/Timeuuid.c" />
<file role="src" name="src/Cassandra/Timeuuid.h" />
<file role="src" name="src/Cassandra/Tinyint.c" />
<file role="src" name="src/Cassandra/Tinyint.h" />
<file role="src" name="src/Cassandra/Tuple.c" />
<file role="src" name="src/Cassandra/Tuple.h" />
<file role="src" name="src/Cassandra/Type.c" />
Expand Down Expand Up @@ -179,17 +199,23 @@ Bug Fixes:
<file role="src" name="version.h" />
<file role="doc" name="LICENSE" />
<file role="doc" name="doc/Cassandra.php" />
<file role="doc" name="doc/Cassandra/Aggregate.php" />
<file role="doc" name="doc/Cassandra/BatchStatement.php" />
<file role="doc" name="doc/Cassandra/Bigint.php" />
<file role="doc" name="doc/Cassandra/Blob.php" />
<file role="doc" name="doc/Cassandra/Cluster.php" />
<file role="doc" name="doc/Cassandra/Cluster/Builder.php" />
<file role="doc" name="doc/Cassandra/Collection.php" />
<file role="doc" name="doc/Cassandra/Column.php" />
<file role="doc" name="doc/Cassandra/Date.php" />
<file role="doc" name="doc/Cassandra/Decimal.php" />
<file role="doc" name="doc/Cassandra/DefaultAggregate.php" />
<file role="doc" name="doc/Cassandra/DefaultCluster.php" />
<file role="doc" name="doc/Cassandra/DefaultColumn.php" />
<file role="doc" name="doc/Cassandra/DefaultFunction.php" />
<file role="doc" name="doc/Cassandra/DefaultIndex.php" />
<file role="doc" name="doc/Cassandra/DefaultKeyspace.php" />
<file role="doc" name="doc/Cassandra/DefaultMaterialzedView.php" />
<file role="doc" name="doc/Cassandra/DefaultSchema.php" />
<file role="doc" name="doc/Cassandra/DefaultSession.php" />
<file role="doc" name="doc/Cassandra/DefaultTable.php" />
Expand Down Expand Up @@ -220,16 +246,19 @@ Bug Fixes:
<file role="doc" name="doc/Cassandra/Exception/WriteTimeoutException.php" />
<file role="doc" name="doc/Cassandra/ExecutionOptions.php" />
<file role="doc" name="doc/Cassandra/Float.php" />
<file role="doc" name="doc/Cassandra/Function.php" />
<file role="doc" name="doc/Cassandra/Future.php" />
<file role="doc" name="doc/Cassandra/FutureClose.php" />
<file role="doc" name="doc/Cassandra/FutureException.php" />
<file role="doc" name="doc/Cassandra/FuturePreparedStatement.php" />
<file role="doc" name="doc/Cassandra/FutureRows.php" />
<file role="doc" name="doc/Cassandra/FutureSession.php" />
<file role="doc" name="doc/Cassandra/FutureValue.php" />
<file role="doc" name="doc/Cassandra/Index.php" />
<file role="doc" name="doc/Cassandra/Inet.php" />
<file role="doc" name="doc/Cassandra/Keyspace.php" />
<file role="doc" name="doc/Cassandra/Map.php" />
<file role="doc" name="doc/Cassandra/MaterializedView.php" />
<file role="doc" name="doc/Cassandra/Numeric.php" />
<file role="doc" name="doc/Cassandra/PreparedStatement.php" />
<file role="doc" name="doc/Cassandra/RetryPolicy.php" />
Expand All @@ -244,13 +273,16 @@ Bug Fixes:
<file role="doc" name="doc/Cassandra/Session.php" />
<file role="doc" name="doc/Cassandra/Set.php" />
<file role="doc" name="doc/Cassandra/SimpleStatement.php" />
<file role="doc" name="doc/Cassandra/Smallint.php" />
<file role="doc" name="doc/Cassandra/Statement.php" />
<file role="doc" name="doc/Cassandra/Table.php" />
<file role="doc" name="doc/Cassandra/Time.php" />
<file role="doc" name="doc/Cassandra/Timestamp.php" />
<file role="doc" name="doc/Cassandra/TimestampGenerator.php" />
<file role="doc" name="doc/Cassandra/TimestampGenerator/Monotonic.php" />
<file role="doc" name="doc/Cassandra/TimestampGenerator/ServerSide.php" />
<file role="doc" name="doc/Cassandra/Timeuuid.php" />
<file role="doc" name="doc/Cassandra/Tinyint.php" />
<file role="doc" name="doc/Cassandra/Tuple.php" />
<file role="doc" name="doc/Cassandra/Type.php" />
<file role="doc" name="doc/Cassandra/Type/Collection.php" />
Expand Down
6 changes: 3 additions & 3 deletions ext/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
/* Define Extension and Version Properties */
#define PHP_CASSANDRA_NAME "cassandra"
#define PHP_CASSANDRA_MAJOR 1
#define PHP_CASSANDRA_MINOR 1
#define PHP_CASSANDRA_MINOR 2
#define PHP_CASSANDRA_RELEASE 0
#define PHP_CASSANDRA_STABILITY "stable"
#define PHP_CASSANDRA_VERSION "1.1.0"
#define PHP_CASSANDRA_VERSION_FULL "1.1.0"
#define PHP_CASSANDRA_VERSION "1.2.0"
#define PHP_CASSANDRA_VERSION_FULL "1.2.0"

#endif /* PHP_CASSANDRA_VERSION_H */
Loading

0 comments on commit 84035aa

Please sign in to comment.