Skip to content

Latest commit

 

History

History
29 lines (26 loc) · 1.09 KB

type-mapping.md

File metadata and controls

29 lines (26 loc) · 1.09 KB

Type relations between Rust (in CDRS approach) and Apache Cassandra

primitive types (T)

Cassandra Rust Feature
tinyint i8 v4, v5
smallint i16 v4, v5
int i32 all
bigint i64 all
ascii String all
text String all
varchar String all
boolean bool all
time i64 all
timestamp i64 all
float f32 all
double f64 all
uuid Uuid all
counter i64 all

complex types

Cassandra Rust + CDRS
blob Blob -> Vec<>
list List -> Vec<T> example
set List -> Vec<T> example
map Map -> HashMap<String, T> example
udt Rust struct + custom implementation into value