plc_control/crates/plc_platform_core
caoqianming 1c646dfaa7 Extract event persistence primitive to platform core
Move the INSERT + WebSocket broadcast mechanism out of the feeder app
and into plc_platform_core as pub record_event(pool, ws, EventInsert).
The event table schema is owned by core, so writing to it is a platform
capability — apps (feeder, future ops) should only decide what to emit,
not how to persist it. Also replaces the 7-tuple in core's
persist_and_broadcast with the named EventInsert struct for readability.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-21 20:04:25 +08:00
..
src Extract event persistence primitive to platform core 2026-04-21 20:04:25 +08:00
tests refactor(core): fill PlatformContext with pool/connection/websocket 2026-04-21 09:11:03 +08:00
Cargo.toml build(workspace): add dual-app workspace manifests 2026-04-14 16:29:52 +08:00