You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: client_wrapper.rs
    path of file: ./repos/prisma-engines/schema-engine/connectors/mongodb-schema-connector/src
    
    the code of the file until where you have to start completion: use enumflags2::BitFlags;
use mongodb::{error::Error as MongoError, options::WriteConcern};
use mongodb_client::MongoConnectionString;
use mongodb_schema_describer::MongoSchema;
use psl::PreviewFeature;
use schema_connector::{ConnectorError, ConnectorResult};

/// Abstraction over a mongodb connection (exposed for tests).
pub struct Client {
    inner: mongodb::Client,
    db_name: String,
    preview_features: BitFlags<PreviewFeature>,
}

impl Client {
    pub async fn connect(connection_str: &str, preview_features: BitFlags<PreviewFeature>) -> ConnectorResult<Client> {
        let MongoConnectionString { datab
    
    pub async fn connect(connection_str: &str, preview_features: BitFlags<PreviewFeature>) -> ConnectorResult<Client> {
        let MongoConnectionString { database, .. } = connection_str.parse().map_err(ConnectorError::url_parse_error)?;

        let inner = mongodb_client::create(connection_str)
            .await
            .map_err(|e| match &e.kind {
                mongodb_client::ErrorKind::InvalidArgument { .. } => ConnectorError::url_parse_error(e),
                mongodb_client::ErrorKind::Other(e) => mongo_error_to_connector_error(e.clone()),
            })?;

        Ok(Client {
            inner,
            db_name: database,
            preview_features,
        })
    }