1 | <?php |
||
5 | class Cassandra |
||
6 | { |
||
7 | |||
8 | /** @var \Cassandra\Cluster */ |
||
9 | protected $cluster; |
||
10 | |||
11 | /** @var /Cassandra\Session */ |
||
12 | protected $session; |
||
13 | |||
14 | |||
15 | /** |
||
16 | * Create a new connection instance with the provided configuration |
||
17 | */ |
||
18 | 3 | public function __construct() |
|
50 | |||
51 | /** |
||
52 | * Create a prepared statement |
||
53 | * |
||
54 | * @param string $cql |
||
55 | * @param \Cassandra\ExecutionOptions|null $options |
||
56 | * |
||
57 | * @return \Cassandra\PreparedStatement |
||
58 | */ |
||
59 | 2 | public function prepare($cql, \Cassandra\ExecutionOptions $options = null) |
|
71 | |||
72 | |||
73 | /** |
||
74 | * Execute a cassandra query statement |
||
75 | * |
||
76 | * @param \Cassandra\Statement $statement |
||
77 | * @param \Cassandra\ExecutionOptions|null $options |
||
78 | * |
||
79 | * @return \Cassandra\Rows |
||
80 | */ |
||
81 | 1 | public function execute(\Cassandra\Statement $statement, \Cassandra\ExecutionOptions $options = null) |
|
93 | } |