Skip to main content

logdive_core/
lib.rs

1//! # logdive-core
2//!
3//! Core library for `logdive` — structured JSON log parsing, SQLite-backed
4//! indexing, and a hand-written query engine.
5//!
6//! This crate is pure library code with no I/O side effects at the module
7//! level. It is consumed by the `logdive` CLI binary and the `logdive-api`
8//! HTTP server binary.
9
10pub mod entry;
11pub mod error;
12pub mod executor;
13pub mod indexer;
14pub mod parser;
15pub mod query;
16
17pub use entry::LogEntry;
18pub use error::{LogdiveError, Result};
19pub use executor::{execute, execute_at};
20pub use indexer::{BATCH_SIZE, Indexer, InsertStats, Stats, db_path};
21pub use parser::parse_line;
22pub use query::{
23    Clause, CompareOp, Duration, DurationUnit, QueryNode, QueryParseError, QueryValue,
24    parse as parse_query,
25};