agent-first-psql 0.5.0

A PostgreSQL tool for AI agents — SQL in, typed rows out, on a connection that stays open.
Documentation
mod errors;
mod executor;
mod params;
mod pool;
mod rows;

pub use errors::ExecError;
pub use executor::{
    DbExecutor, ExecOutcome, ExecRequest, PostgresExecutor, RowSink, StreamOutcome,
};
pub use pool::{cancel_query, new_cancel_slot, CancelSlot};

#[cfg(test)]
use crate::types::SessionConfig;
#[cfg(test)]
use params::{
    build_param_refs, build_params, parse_bool, parse_f64, parse_i16, parse_i32, parse_i64,
    parse_text, AnyNull,
};
#[cfg(test)]
use serde_json::Value;
#[cfg(test)]
use tokio_postgres::types::{ToSql, Type};

#[cfg(test)]
#[path = "../../tests/support/unit_db.rs"]
mod tests;