Commit Graph

12 Commits

Author SHA1 Message Date
Avi Kivity
a2519926a6 db: add some iostream output operators
Helps debugging
2015-02-19 15:56:26 +02:00
Tomasz Grabiec
245f4dfe00 types: Avoid allocation in simple_type_impl::less() 2015-02-17 12:43:15 +02:00
Tomasz Grabiec
700799e965 types: Make deserialize() work on bytes_view 2015-02-17 12:43:15 +02:00
Tomasz Grabiec
6cde02cbc7 types: Make equal/hash/less work on bytes_view
The serialized value is not always a standalone "bytes" object, it can
be embedded in a larger chunk. It's much faster to work on the data
in-place.
2015-02-17 12:43:15 +02:00
Tomasz Grabiec
63d152ece8 types: Introduce abstract_type::as_cql3_type()
Origin also has it.
2015-02-12 19:40:58 +01:00
Tomasz Grabiec
863d305a66 types: Make from_string() work on sstring_view 2015-02-12 19:40:58 +01:00
Tomasz Grabiec
f1c9f64a25 types: Implement string conversions for int32_type and string_type 2015-02-09 10:28:44 +01:00
Tomasz Grabiec
f61d637cdb types: Mark bytes_type as byte order comparable 2015-01-29 15:02:27 +01:00
Tomasz Grabiec
65d2707794 types: Add support for equality and hashing of serialized values 2015-01-29 15:02:27 +01:00
Tomasz Grabiec
b0215f0fdc types: Mark string_type as byte order comparable 2015-01-29 15:02:26 +01:00
Tomasz Grabiec
ddcc750210 types: Mark date_type as byte order comparable and compare as such 2015-01-29 15:02:26 +01:00
Tomasz Grabiec
17b9babd91 Extract types related stuff from database.{cc,hh} to types.{cc,hh} 2015-01-29 15:02:19 +01:00