Kea
1.9.9-git
|
Common operations in Cassandra exchanges. More...
#include <cql_exchange.h>
Static Public Member Functions | |
static void | bindData (const AnyArray &data, CassStatement *statement) |
Assigns values to every column of an INSERT or an UPDATE statement. More... | |
static void | getData (const CassRow *row, AnyArray &data) |
Retrieves data returned by Cassandra. More... | |
Common operations in Cassandra exchanges.
Definition at line 292 of file cql_exchange.h.
|
static |
Assigns values to every column of an INSERT or an UPDATE statement.
Calls cqlBindFunction_() for every column with its respective type.
data | array containing column values to be passed to the statement being executed |
statement | internal Cassandra object representing the statement being executed |
Definition at line 680 of file cql_exchange.cc.
References isc::db::exchangeType(), isc_throw, and isc::Exception::what().
Referenced by isc::db::CqlExchange::executeMutation(), isc::db::CqlExchange::executeSelect(), and isc::dhcp::CqlLeaseStatsQuery::executeSelect().
|
static |
Retrieves data returned by Cassandra.
Calls cqlGetFunction_() for every column with its respective type.
row | internal Cassandra object containing data returned by Cassandra |
data | array containing objects to be populated with results |
Definition at line 709 of file cql_exchange.cc.
References isc::db::exchangeType(), isc_throw, and isc::Exception::what().
Referenced by isc::db::CqlExchange::executeSelect(), isc::dhcp::CqlLeaseStatsQuery::executeSelect(), and isc::db::CqlExchange::statementApplied().