mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
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:
parent
341240740a
commit
351242561d
28 changed files with 207 additions and 161 deletions
|
@ -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};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue