Skip to main content

create_database

Function create_database 

Source
pub async fn create_database(url: &str) -> Result<(), DbErr>
Expand description

Creates the database named in url.

Returns Ok(()) once the database exists. Callers may inspect the error for an “already exists” message to treat re-creation as a no-op.