teaql-runtime
Runtime repository and graph persistence layer for TeaQL Rust.
teaql-runtime connects TeaQL metadata, dialects, executors, repositories,
behaviors, checkers, events, and graph writes through UserContext.
What It Provides
UserContextfor metadata, resources, request locals, and runtime options- repository registry and behavior registry
- memory repository for tests and lightweight execution
- checker registry and translated validation results
- entity event sink support
- graph save planning and execution
- typed entity graph extraction
- optional
sqlxsupport for PostgreSQL and SQLite - schema bootstrap helpers for SQLite and PostgreSQL
- SQL debug logging options on
UserContext
Example
use ;
let mut ctx = new
.with_metadata_store
.enable_all_sql_log;
let logs = ctx.sql_logs;
assert!;
With generated code, applications typically register a generated runtime module and then use generated entity/request helpers:
let ctx = new
.with_module
.with_repository_registry;
Enable the sqlx feature when using the built-in PostgreSQL or SQLite
executors:
= { = "0.7", = ["sqlx"] }