-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcql.rs
More file actions
87 lines (85 loc) · 2.59 KB
/
Copy pathcql.rs
File metadata and controls
87 lines (85 loc) · 2.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
//! CQL types and utilities.
//!
//! # CQL Data Types
//!
//! CQL is a typed language which supports a few
//! [data types](https://cassandra.apache.org/doc/stable/cassandra/cql/types.html).
//!
//! The [`ValueType`] enum represents a type of a CQL value, [`ValueKind`]
//! represents its kind (native, custom, collection, tuple, user-defined). The
//! [`DataType`] provides runtime information about the CQL data type. It
//! also can be used to create CQL data types.
//!
//! ```text
//! +---------+ +-----------+
//! |ValueType| | DataType |
//! +---------+ +-----------+
//! | Ascii| | Native|--->NativeDataType
//! | BigInt| | Custom|--->CustomDataType
//! | Blob| | Indexed|--->IndexedDataType
//! | Boolean| | Map|--->MapDataType
//! | Counter| | Tuple|--->TupleDataType
//! | Date| |UserDefined|--->UserDefinedDataType
//! | Decimal| +-----------+
//! | Double| |
//! | Duration| | +-----------------+
//! | Float| v +-->|native(type) |
//! | Inet| +---------+ +-->|custom() |
//! | Int|<-----+ |builder()|--+-->|indexed(set/list)|
//! | SmallInt| | +---------+ +-->|map() |
//! | Text| | +-->|tuple() |
//! | Time| | +-->|udt() |
//! | TimeUuid| | +-----------------+
//! |Timestamp| |
//! | TinyInt| |
//! | Uuid| |
//! | VarChar| |
//! | VarInt| |
//! | | |
//! | | | +-----------+
//! | Custom|<--+ | | ValueKind |
//! | | | | +-----------+
//! | | | +--|Native |
//! | List| +-----|Custom |
//! | Map|<--------|Collection |
//! | Set| +-----|Tuple |
//! | | | +--|UserDefined|
//! | | | | +-----------+
//! | Tuple|<--+ |
//! | | |
//! | | |
//! | Udt|<-----+
//! +---------+
//! ```
mod ascii;
mod collection;
mod counter;
mod data_type;
mod date;
mod decimal;
mod duration;
mod inet;
mod time;
mod timestamp;
mod tuple;
mod uuid;
mod uuid_gen;
mod value;
mod value_type;
mod varint;
pub use ascii::*;
pub use collection::*;
pub use counter::*;
pub use data_type::*;
pub use date::*;
pub use decimal::*;
pub use duration::*;
pub use inet::*;
pub use time::*;
pub use timestamp::*;
pub use tuple::*;
pub use uuid::*;
pub use uuid_gen::*;
pub use value::*;
pub use value_type::*;
pub use varint::*;