Tomasz Grabiec
c5d1f9c493
result_set: Expose get_data_value()
2015-07-02 13:25:46 +02:00
Tomasz Grabiec
4c008e059a
result_set: Store schema pointer with result_set
2015-07-02 13:25:46 +02:00
Tomasz Grabiec
f388139a7b
result_set_builder: Move to source file
2015-07-02 13:25:46 +02:00
Tomasz Grabiec
a1f6dec067
result_set: Introduce from_raw_result() factory method
2015-07-02 13:25:46 +02:00
Tomasz Grabiec
c9e5508e3c
result_set_builder: Make build() return unwrapped object
...
It's better to let the user decide which kind (if any) of smart
pointer to wrap it into.
2015-07-02 13:25:46 +02:00
Pekka Enberg
5084ce0955
query-result-set.hh: Add result_set_row::has() helper
...
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-06-17 12:25:18 +03:00
Pekka Enberg
ab6dbc0d83
query-result-set: Add rows() accessor function
...
Add rows() accessor function for iterating over the whole result set.
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-06-08 14:42:36 +03:00
Pekka Enberg
ee3dbcd294
query-result-set: Add operator<< for result sets
...
Add operator<< for result sets to make debugging schema merging code
issues easier.
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-06-05 12:59:57 +03:00
Pekka Enberg
6ed0d8c0e4
query-result-set.hh: Add comparison operators
...
Schema merging code needs to be able to compare two result sets to
determine if a keyspace, for example, has changed. Add comparison
operators for that.
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-05-27 11:49:12 +03:00
Pekka Enberg
446555f2de
query-result-set.hh: Use data_value instead of boost::any
...
Switch to data_value in preparation for adding support for comparison
operators.
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-05-27 11:49:12 +03:00
Pekka Enberg
f17a8a7a92
query: Add support for result sets
...
Add a query::result_set class that contains per-row cells that can be
accessed by column name. Partition keys, clustering keys, and static
values are duplicated for every row for convenience.
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com >
2015-04-28 15:49:34 +03:00