rbdc_sqlite/types/
mod.rs

1//! Conversions between Rust and **SQLite** types.
2//!
3//! # Types
4//!
5//! | Rust type                             | SQLite type(s)                                       |
6//! |---------------------------------------|------------------------------------------------------|
7//! | `bool`                                | BOOLEAN                                              |
8//! | `i8`                                  | INTEGER                                              |
9//! | `i16`                                 | INTEGER                                              |
10//! | `i32`                                 | INTEGER                                              |
11//! | `i64`                                 | BIGINT, INT8                                         |
12//! | `u8`                                  | INTEGER                                              |
13//! | `u16`                                 | INTEGER                                              |
14//! | `u32`                                 | INTEGER                                              |
15//! | `u64`                                 | BIGINT, INT8                                         |
16//! | `f32`                                 | REAL                                                 |
17//! | `f64`                                 | REAL                                                 |
18//! | `&str`, [`String`]                    | TEXT                                                 |
19//! | `&[u8]`, `Vec<u8>`                    | BLOB                                                 |
20//! # Nullable
21//!
22//! In addition, `Option<T>` is supported where `T` implements `Type`. An `Option<T>` represents
23//! a potentially `NULL` value from SQLite.
24//!
25
26mod bool;
27mod bytes;
28mod float;
29mod int;
30mod str;
31mod uint;
32use crate::type_info::Type;
33mod value;
34
35#[cfg(test)]
36mod test {
37    #[test]
38    fn test_datetime() {}
39}