Skip to main content

drizzle_types/sqlite/
mod.rs

1//! `SQLite` type definitions
2//!
3//! This module provides type definitions for `SQLite` including:
4//!
5//! - [`SQLiteType`] - `SQLite` column storage types
6//! - [`TypeCategory`] - Rust type classification for `SQLite` mapping
7//! - [`SQLTypeCategory`] - SQL type affinity categories for parsing
8
9pub mod ddl;
10mod sql_type;
11mod type_category;
12
13pub mod types {
14    #[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
15    pub struct Integer;
16
17    #[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
18    pub struct Text;
19
20    #[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
21    pub struct Real;
22
23    #[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
24    pub struct Blob;
25
26    #[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
27    pub struct Numeric;
28
29    #[derive(Debug, Clone, Copy, Default, PartialEq, Eq, Hash)]
30    pub struct Any;
31}
32
33pub use sql_type::{SQLiteAffinity, SQLiteType};
34pub use type_category::{SQLTypeCategory, TypeCategory};