1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! # mini-app-core
//!
//! Agent-First CRUD store core library. Transport-agnostic DB layer that
//! drives one table per process from `schema.yaml`, backed by SQLite.
//!
//! Transport (MCP / HTTP / CLI) lives in a separate crate (`mini-app-mcp`)
//! that depends on this one. The dependency is strictly one-way:
//! `mcp → core`, never the reverse. Error type conversion to `rmcp::ErrorData`
//! is performed by an ACL adapter (private free function) in the mcp crate to
//! comply with the Rust orphan rule (Outline rust book §5-1-10 K-orphan-rule).
/// Schema definition, runtime loading, and JSON row validation.
/// Application-level error type.
/// Runtime configuration loaded from environment variables.
/// SQLite-backed row store (async CRUD via `tokio::task::spawn_blocking`).
/// Update semantics for [`store::Store::update`]: [`UpdateMode::Merge`] (default,
/// RFC 7396 shallow merge) or [`UpdateMode::Replace`] (full replacement).
pub use UpdateMode;
/// Server-side row filter for the `list` tool.
/// Multi-table registry + atomic reload (Arc-Swap based, K-110-compliant).
/// `row_materialize` operation — row selection, field projection, and
/// multi-format filesystem output with SHA-256 integrity digest.
/// Framework-level dump hook utilities (write-only file materialization).
/// Backup utilities (YAML + SQLite online backup with retention).
/// Snapshot utilities (SQLite-only online snapshot with retention).
/// Re-export of [`error::MiniAppError`] for convenient `use mini_app_core::MiniAppError`.
pub use MiniAppError;