[package]
name = "kei-memory-postgres"
version = "0.1.0"
edition.workspace = true
rust-version.workspace = true
description = "MemoryBackend impl over PostgreSQL (tokio-postgres) for kei-runtime-core"
authors.workspace = true
license.workspace = true

[lib]
name = "kei_memory_postgres"
path = "src/lib.rs"

[features]
default = []
# `live` enables tests that connect to a real PostgreSQL instance.
# Use: KEI_PG_URL=postgres://... cargo test -p kei-memory-postgres --features live
live = []

[dependencies]
async-trait = { workspace = true }
thiserror = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }
tokio = { workspace = true }
tokio-postgres = { version = "0.7", features = ["with-serde_json-1"] }
kei-runtime-core = { path = "../kei-runtime-core" }

[package.metadata.keisei]
backend = "postgres"
description = "PostgreSQL-backed MemoryBackend; production multi-process, JSONB payloads, GIN-friendly tag arrays"
authors = ["Denis Parfionovich <parfionovich@keilab.io>"]
