Skip to main content

githubdw/
lib.rs

1//! # githubdw
2#![recursion_limit = "256"]
3//!
4//! A local, SQLite-based data warehouse for GitHub repositories.
5//!
6//! `githubdw` syncs pull requests (with reviews, comments, file diffs, and
7//! check runs) and issues (with labels, milestones, and comments) from GitHub
8//! into a star-schema SQLite database, then provides querying, metrics,
9//! fulltext search (FTS5 trigram), and an MCP server for AI assistants.
10//!
11//! Data is fetched via the `gh` CLI as a subprocess, so authentication is
12//! entirely delegated to `gh auth`. GitHub Enterprise works via `GH_HOST`.
13
14pub mod error;
15pub mod fetch;
16mod githubdw;
17pub mod groups;
18pub mod mcp;
19pub mod metrics;
20pub mod period;
21pub mod query;
22pub mod search;
23pub mod storage;
24pub mod sync;
25
26pub use error::{Error, Result};
27pub use githubdw::GithubDW;
28pub use period::Period;
29pub use query::{PrState, QueryBuilder};