Repository navigation
Expand file tree
/
Copy pathmod.rs
More file actions
30 lines (28 loc) · 1.47 KB
/
Copy pathmod.rs
File metadata and controls
30 lines (28 loc) · 1.47 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
//! Conversions between Rust and **SQLite** types.
//!
//! # Types
//!
//! | Rust type | SQLite type(s) |
//! |---------------------------------------|------------------------------------------------------|
//! | `bool` | BOOLEAN |
//! | `i16` | INTEGER |
//! | `i32` | INTEGER |
//! | `i64` | BIGINT, INT8 |
//! | `f32` | REAL |
//! | `f64` | REAL |
//! | `&str`, `String` | TEXT |
//! | `&[u8]`, `Vec<u8>` | BLOB |
//!
//! # Nullable
//!
//! In addition, `Option<T>` is supported where `T` implements `Type`. An `Option<T>` represents
//! a potentially `NULL` value from SQLite.
//!
// NOTE: all types are compatible with all other types in SQLite
// so we explicitly opt-out of runtime type assertions by returning [true] for
// all implementations of [Decode::accepts]
mod bool;
mod bytes;
mod float;
mod int;
mod str;