Function init_test_database

Source
pub async fn init_test_database() -> Result<Surreal<Db>>
Expand description

Initialize a test database with the same tables as the main database. This is useful for testing queries and mutations.

ยงErrors

This function will return an error if the database cannot be initialized.