12 Feb 2015 16:39:48 UTC
- Distribution: Net-Async-CassandraCQL
- Module version: 0.12
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (1)
- Testers (430 / 5 / 8)
- KwaliteeBus factor: 1
- 81.45% Coverage
- License: perl_5
- Activity24 month
- Download (46.68KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- $id = $query->id
- $cql = $query->cql
- $meta = $query->params_meta
- $n_params = $query->params
- $name = $query->param_name( $idx )
- ( $keyspace, $table, $column ) = $query->param_name( $idx )
- $name = $query->param_shortname( $idx )
- $type = $query->param_type( $idx )
- $meta = $query->result_meta
- $query->execute( $data, $consistency ) ==> ( $type, $result )
Net::Async::CassandraCQL::Query- a Cassandra CQL prepared query
Prepared query objects are returned by the
prepareof Net::Async::CassandraCQL to represent a prepared query in the server. They can be executed multiple times, if required, by passing the values of the placeholders to the
For backward compatibility, as this object class is no longer a subclass of Protocol::CassandraCQL::ColumnMeta, the following methods will be directed to the
columns column_name column_shortname column_type find_column encode_data decode_data
However, most of them are available more directly as the
param*methods. Code should not rely on these temporary redirects remaining in a future version.
Returns the query ID.
Returns the original query string used to prepare the query.
Returns a Protocol::CassandraCQL::ColumnMeta instance with the metadata about the bind parameters.
Redirections to the appropriately named method on the
Returns a Protocol::CassandraCQL::ColumnMeta instance with the metadata about the query result. This will only be defined on connections with a
cql_versionof 2 or above.
Executes the query on the Cassandra connection object that created it, returning a future yielding the result the same way as the
The contents of the
$datareference will be encoded according to the types given in the underlying column metadata.
$datamay be given as a positional ARRAY reference, or a named HASH reference where the keys give column names.
This code was paid for by
Paul Evans <firstname.lastname@example.org>
Module Install Instructions
To install Net::Async::CassandraCQL, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Net::Async::CassandraCQL
For more information on module installation, please visit the detailed CPAN module installation guide.