( CW$result_op, CW$result_frame ) = CW$cass->send_message( CW$opcode, CW$frame )
Sends a message with the given opcode and Protocol::CassandraCQL::Frame for
the message body. Waits for a response to be received, and returns it.
If the response opcode is OPCODE_ERROR then the error message string is
thrown directly as an exception; this method will only return in non-error
( CW$type, CW$result ) = CW$cass->query( CW$cql, CW$consistency )
Performs a CQL query and returns the result, as decoded by
parse_result_frame in Protocol::CassandraCQL::Frames.
For USE queries, the type is RESULT_SET_KEYSPACE and $result is a
string giving the name of the new keyspace.
For CREATE, ALTER and DROP queries, the type is
RESULT_SCHEMA_CHANGE and $result is a 3-element ARRAY reference
containing the type of change, the keyspace and the table name.
For SELECT queries, the type is RESULT_ROWS and $result is an
instance of Protocol::CassandraCQL::Result containing the returned row
For other queries, such as INSERT, UPDATE and DELETE, the method
returns RESULT_VOID and $result is undef.
( CW$type, CW$result ) = CW$cass->use_keyspace( CW$keyspace )
A convenient shortcut to the USE $keyspace query which escapes the keyspace