Function pg_query_one

Source
pub fn pg_query_one(query: &str) -> Result<Map, Box<EvalAltResult>>
Expand description

Execute a query on the PostgreSQL connection and return a single row

§Arguments

  • query - The query to execute

§Returns

  • Result<Map, Box<EvalAltResult>> - The row if successful, error otherwise