Single-commit clean baseline after security scrub of niche-tells, project codenames, internal jargon, and contributor-email leaks. Contents: - 100 Rust crates (_primitives/_rust/) - 37 agent manifests (_manifests/) + generated specs (_generated/) - 67 user-invocable skills (skills/) - 33 hooks (hooks/) - Composition blocks (_blocks/) - Documentation (docs/, README.md) - TS adapter packages (_ts_packages/) - Assembler (_assembler/) - Roles (_roles/) - Templates (_templates/) - Forgejo CI (.forgejo/) Author: Denis Parfionovich <info@greendragon.info> License: see LICENSE.
31 lines
1 KiB
Rust
31 lines
1 KiB
Rust
// SPDX-License-Identifier: Apache-2.0
|
|
// Copyright 2026 <author org>
|
|
//!
|
|
//! kei-memory-postgres — `MemoryBackend` impl over PostgreSQL via
|
|
//! `tokio-postgres`.
|
|
//!
|
|
//! Suitable for:
|
|
//! - shared per-fleet memory store (multi-process, multi-host)
|
|
//! - JSONB payloads with GIN indexability on tags
|
|
//! - production durability + WAL replication
|
|
//!
|
|
//! Out of scope:
|
|
//! - migrations beyond the single `apply_schema` idempotent bootstrap
|
|
//! (use a dedicated migration tool for richer schema evolution)
|
|
//! - `mirror_to_remote` returns `Provider` — git push is the
|
|
//! responsibility of `kei-sleep-sync.sh` per RULE 0.15.
|
|
//!
|
|
//! Why tokio-postgres instead of sqlx: schema is small (one table,
|
|
//! two indexes), no compile-time query macros needed, fewer transitive
|
|
//! deps. Keeps the primitive tight.
|
|
|
|
pub mod backend;
|
|
pub mod error;
|
|
pub mod query_builder;
|
|
pub mod schema;
|
|
pub mod store;
|
|
|
|
pub use backend::PostgresBackend;
|
|
pub use error::{Error, Result};
|
|
pub use schema::{apply_schema, SCHEMA_SQL};
|
|
pub use store::PgStore;
|