Kill anyhow usage

Switch anyhow to explicit `LimboError` type using thiserror crate, which
lets us make error handling more structured.
This commit is contained in:
Pekka Enberg 2024-07-25 15:42:11 +03:00
parent 341240740a
commit 351242561d
28 changed files with 207 additions and 161 deletions

View file

@ -1,6 +1,7 @@
mod btree;
mod buffer_pool;
mod datetime;
mod error;
mod function;
mod io;
mod pager;
@ -17,7 +18,6 @@ mod vdbe;
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
use anyhow::Result;
use fallible_iterator::FallibleIterator;
use log::trace;
use pager::Pager;
@ -27,6 +27,9 @@ use sqlite3_parser::{ast::Cmd, lexer::sql::Parser};
use std::sync::Arc;
use std::{cell::RefCell, rc::Rc};
pub use error::LimboError;
pub type Result<T> = std::result::Result<T, error::LimboError>;
#[cfg(feature = "fs")]
pub use io::PlatformIO;
pub use io::{Buffer, Completion, File, WriteCompletion, IO};