Function edgedb_tokio::create_client
source · pub async fn create_client() -> Result<Client, Error>Expand description
Create a connection to the database with default parameters
It’s expected that connection parameters are set up using environment
(either environment variables or project configuration in edgedb.toml)
so no configuration is specified here.
This method tries to esablish single connection immediately to ensure that configuration is valid and will error out otherwise.
For more fine-grained setup see Client and Builder documentation
and the source of this function.