pub enum SqliteMemoryError {
Sqlite(Error),
Migration {
name: String,
source: Error,
},
VecLoad(String),
BlockingJoin(String),
DimMismatch {
expected: usize,
actual: usize,
},
Json(Error),
}Expand description
Errors that originate inside the SQLite memory backend.
Variants§
Sqlite(Error)
rusqlite returned an error.
Migration
Migration file failed to apply.
Fields
VecLoad(String)
sqlite-vec couldn’t be loaded into the connection.
BlockingJoin(String)
tokio::task::spawn_blocking panicked.
DimMismatch
Embedder produced a vector with the wrong dimension.
Fields
Json(Error)
JSON serialization or deserialization failed inside the storage layer.
Trait Implementations§
Source§impl Debug for SqliteMemoryError
impl Debug for SqliteMemoryError
Source§impl Display for SqliteMemoryError
impl Display for SqliteMemoryError
Source§impl Error for SqliteMemoryError
impl Error for SqliteMemoryError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for SqliteMemoryError
impl From<Error> for SqliteMemoryError
Source§impl From<Error> for SqliteMemoryError
impl From<Error> for SqliteMemoryError
Source§impl From<SqliteMemoryError> for MemoryError
impl From<SqliteMemoryError> for MemoryError
Source§fn from(e: SqliteMemoryError) -> Self
fn from(e: SqliteMemoryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SqliteMemoryError
impl !UnwindSafe for SqliteMemoryError
impl Freeze for SqliteMemoryError
impl Send for SqliteMemoryError
impl Sync for SqliteMemoryError
impl Unpin for SqliteMemoryError
impl UnsafeUnpin for SqliteMemoryError
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