pub fn create_collection<N>(&self, collection_name: N) -> Result<CollectionSession<C>>
    where
        N: Into<String>,
    {
        self.execute(CreateCollection::with_name(collection_name))
            .map(|props| {
                CollectionSession::new(
                    Entity::Object(Collection::from(props)),
                    self.database_name.clone(),
                    self.connector.clone(),
                    self.core.clone(),
                )
            })
    }
/// Creates a new collection within the database of this session.
Creates a new collection within the database of this session.
Creates a new collection within the database of this session .
pub fn create_collection<N>(&self, collection_name: N) -> Result<CollectionSession<C>>
    where
        N: Into<String>,
    {
        self.execute(CreateCollection::with_name(collection_name))
            .map(|props| {
                CollectionSession::new(
                    Entity::Object(Collection::from(props)),
                    self.database_name.clone(),
                    self.connector.clone(),
                    self.core.clone(),
                )
            })
    }
pub fn create_collection < N > ( & self , collection_name : N ) -> Result < CollectionSession < C > > where N : Into < String > , { self . execute ( CreateCollection :: with_name ( collection_name ) ) . map ( | props | { CollectionSession :: new ( Entity :: Object ( Collection :: from ( props ) ) , self . database_name . clone ( ) , self . connector . clone ( ) , self . core . clone ( ) , ) } ) }
Creates a new collection within the database of this session.
Creates a new collection within the database of this session .
&self
collection_name
N
&self
collection_name
N