Function pg_execute_sql

Source
pub fn pg_execute_sql(
    container_name: &str,
    db_name: &str,
    sql: &str,
) -> Result<String, Box<EvalAltResult>>
Expand description

Execute a SQL script in PostgreSQL

§Arguments

  • container_name - Name of the PostgreSQL container
  • db_name - Database name
  • sql - SQL script to execute

§Returns

  • Result<String, Box<EvalAltResult>> - Output of the command if successful, error otherwise