pub async fn qe_setup(database_str: &str) -> ConnectorResult<()> {
        let (client, db_name) = Self::create_client(database_str).await?;

        // Drop database. Creation is automatically done when collections are created.
        client
            .database(&db_name)
            .drop(Some(
                mongodb::options::DropDatabaseOptions::builder()
                    .write_concern(WriteConcern::builder().journal(true).build())
                    .build(),
            ))
            .await
            .into_connector_result()?;

        Ok(())
    }
/// Set up the database for connector-test-kit, without initializing the connector.
Set up the database for connector-test-kit, without initializing the connector.
Set up the database for connector - test - kit without initializing the connector .
pub async fn qe_setup(database_str: &str) -> ConnectorResult<()> {
        let (client, db_name) = Self::create_client(database_str).await?;
        // Drop database. Creation is automatically done when collections are created.
        client
            .database(&db_name)
            .drop(Some(
                mongodb::options::DropDatabaseOptions::builder()
                    .write_concern(WriteConcern::builder().journal(true).build())
                    .build(),
            ))
            .await
            .into_connector_result()?;
        Ok(())
    }
pub async fn qe_setup ( database_str : & str ) -> ConnectorResult < ( ) > { let ( client , db_name ) = Self :: create_client ( database_str ) . await ? ; // Drop database. Creation is automatically done when collections are created. client . database ( & db_name ) . drop ( Some ( mongodb :: options :: DropDatabaseOptions :: builder ( ) . write_concern ( WriteConcern :: builder ( ) . journal ( true ) . build ( ) ) . build ( ) , ) ) . await . into_connector_result ( ) ? ; Ok ( ( ) ) }
Set up the database for connector-test-kit, without initializing the connector.
Set up the database for connector - test - kit without initializing the connector .
database_str
&str