#[non_exhaustive]pub enum ColumnType {
}Expand description
The logical column types.
SQLite has only four storage classes; the logical type decides the
declared type written in DDL (which also drives STRICT tables) and how
turso-orm decodes values. Every type maps to one of INTEGER, REAL,
TEXT and BLOB.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Integer
An INTEGER.
Boolean
An INTEGER holding 0 or 1.
Real
A REAL.
Text
A TEXT.
String(Option<u32>)
A TEXT with an advisory maximum length that the engine does not
enforce.
Blob
A BLOB.
Date
A TEXT in YYYY-MM-DD form.
Time
A TEXT in HH:MM:SS.fff form.
DateTime
A TEXT in YYYY-MM-DD HH:MM:SS.fff form.
TimestampWithTimeZone
A TEXT in RFC 3339 form.
Uuid
A TEXT holding a hyphenated UUID.
Json
A TEXT holding a JSON document.
Decimal
A TEXT holding an exact decimal.
Any
The ANY type, only meaningful in STRICT tables.
Custom(String)
A custom declared type written verbatim.
Implementations§
Trait Implementations§
Source§impl Clone for ColumnType
impl Clone for ColumnType
Source§impl Debug for ColumnType
impl Debug for ColumnType
impl Eq for ColumnType
Source§impl PartialEq for ColumnType
impl PartialEq for ColumnType
impl StructuralPartialEq for ColumnType
Auto Trait Implementations§
impl Freeze for ColumnType
impl RefUnwindSafe for ColumnType
impl Send for ColumnType
impl Sync for ColumnType
impl Unpin for ColumnType
impl UnsafeUnpin for ColumnType
impl UnwindSafe for ColumnType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more