Function create_database

Source
pub fn create_database(
    container: &Container,
    db_name: &str,
) -> Result<(), PostgresInstallerError>
Expand description

Create a new database in PostgreSQL

§Arguments

  • container - PostgreSQL container
  • db_name - Database name

§Returns

  • Result<(), PostgresInstallerError> - Ok if successful, Err otherwise