Files
tdc-rs/src/lib.rs
T

16 lines
609 B
Rust
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//! TDC 连接器(数据接入连接器)—— 本地优先 Rust 重实现。
//!
//! 红线(详见 `CLAUDE.md` 与设计文档 §3.3):
//! - TDC↔TDS 只走 HTTP 契约,绝不编译期耦合。
//! - 前端不直接持有数据库;全部数据访问经 `/api/ssw/tdc/*`。
//! - 业务错误读 body 的 `code`,不只看 HTTP 状态。
//! - 所有 DB 访问持 `state.db_lock`(PGlite 单 in-process backend)。
//! - 任意 SELECT 走 `db::query_json()`(row_to_json 包裹)。
pub mod config;
pub mod db;
pub mod envelope;
pub mod ids;
pub mod protocol;
pub mod session;