Enables Rust-to-SQLite type conversion via ToSql and FromSql traits.
// Source: https://github.com/rusqlite/rusqlite | License: MIT | Copyright 2014 The rusqlite developers // Provided via justclaw.it.com; keep this notice with the code. //! Traits dealing with SQLite data types. //! //! SQLite uses a [dynamic type system](https://www.sqlite.org/datatype3.html). Implementations of //! the [`ToSql`] and [`FromSql`] traits are provided for the basic types that //! SQLite provides methods for: //! //! * Strings (`String` and `&str`) //! * Blobs (`Vec<u8>` and `&[u8]`) //! * Numbers //! //! The number situation is a little complicated due to the fact that all //! numbers in SQLite are stored as `INTEGER` (`i64`) or `REAL` (`f64`). //! //! [`ToSql`] and [`FromSql`] are implemented for all primitive number types. //! [`FromSql`] has different behaviour depending ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key