Function execute_sql
Source pub fn execute_sql(
container: &Container,
db_name: &str,
sql: &str,
) -> Result<String, PostgresInstallerError>
Expand description
Execute a SQL script in PostgreSQL
§Arguments
container
- PostgreSQL container
db_name
- Database name
sql
- SQL script to execute
§Returns
Result<String, PostgresInstallerError>
- Output of the command or error