Trait duckdb::ToSql [−][src]
pub trait ToSql {
fn to_sql(&self) -> Result<ToSqlOutput<'_>>;
}
Expand description
A trait for types that can be converted into DuckDB values. Returns
[Error::ToSqlConversionFailure
] if the conversion fails.
Required methods
fn to_sql(&self) -> Result<ToSqlOutput<'_>>
fn to_sql(&self) -> Result<ToSqlOutput<'_>>
Converts Rust value to DuckDB value