Expand description
introspection 行 JSON → schemaJSON(纯映射,可喂 Registry::register)
联网查库在 Host 侧做,只把结构化的 rows JSON(tables / columns / fks / indexes)传给
本模块做纯映射。SQLite 用 sqlite_master + PRAGMA;MySQL/PG 用 information_schema,
Host 归一化成下列行形状:
Functions§
- introspect_
to_ schema_ json - 方便绑定层:直接返回已注册集合的 schemaJSON(等价
schema_def_from_rows,但归一到 model 名) - schema_
def_ from_ rows - 从规范化 introspection 行 JSON 生成 schemaJSON 数组。