sqlite_decoder/
lib.rs

1pub mod btree;
2pub mod db;
3mod util;
4pub mod wal;
5
6#[derive(Debug)]
7pub(crate) struct ParserError(String);
8
9impl<I> nom::error::ParseError<I> for ParserError {
10    fn from_error_kind(_input: I, kind: nom::error::ErrorKind) -> Self {
11        ParserError(format!("error {:?}", kind))
12    }
13    fn append(_input: I, _kind: nom::error::ErrorKind, _other: Self) -> Self {
14        todo!()
15    }
16    fn from_char(_input: I, _: char) -> Self {
17        todo!()
18    }
19    fn or(self, _other: Self) -> Self {
20        todo!()
21    }
22}
23
24pub(crate) type IResult<I, O, E = ParserError> = Result<(I, O), nom::Err<E>>;