pub trait ToDuckDbType {
    type DuckDbRepresentation;

    const DUCKDB_TYPE_ID: TypeId;
}
Expand description

Rust primitive types to duckdb types

Required Associated Types§

source

type DuckDbRepresentation

Representation to interface with DuckDb

Required Associated Constants§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ToDuckDbType for &CStr

source§

impl ToDuckDbType for bool

source§

impl ToDuckDbType for f32

source§

impl ToDuckDbType for f64

source§

impl ToDuckDbType for i8

source§

impl ToDuckDbType for i16

source§

impl ToDuckDbType for i32

source§

impl ToDuckDbType for i64

source§

impl ToDuckDbType for i128

source§

impl ToDuckDbType for u8

§

type DuckDbRepresentation = u8

source§

const DUCKDB_TYPE_ID: TypeId = TypeId::UTinyInt

source§

impl ToDuckDbType for u16

§

type DuckDbRepresentation = u16

source§

const DUCKDB_TYPE_ID: TypeId = TypeId::USmallInt

source§

impl ToDuckDbType for u32

source§

impl ToDuckDbType for u64

source§

impl ToDuckDbType for NaiveDate

source§

impl ToDuckDbType for NaiveDateTime

source§

impl ToDuckDbType for NaiveTime

source§

impl<Tz: TimeZone> ToDuckDbType for DateTime<Tz>

Implementors§