pub trait ColumnValue: Send + Sync {
// Required methods
fn to_sql_value(&self) -> Value;
fn column_type(&self) -> &'static str;
}Expand description
Value that can be stored in a SQLite vector store document column.
Use serde_json::Value for columns declared as JSON.
Required Methods§
Sourcefn to_sql_value(&self) -> Value
fn to_sql_value(&self) -> Value
Converts this value to a typed SQLite value.
Sourcefn column_type(&self) -> &'static str
fn column_type(&self) -> &'static str
Returns the SQLite type name for this value.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".