pub fn create_graph(&self, new_graph: NewGraph) -> FutureResult<GraphSession<C>> {
        let connector = self.connector.clone();
        let database_name = self.database_name.clone();
        Box::new(
            self.connector
                .connection(&self.database_name)
                .execute(CreateGraph::new(new_graph))
                .map(|graph| GraphSession::new(graph, database_name, connector)),
        )
    }
/// Creates a new graph in the database represented by this
/// `DatabaseSession`.
Creates a new graph in the database represented by this
`DatabaseSession`.
Creates a new graph in the database represented by this ` DatabaseSession ` .
pub fn create_graph(&self, new_graph: NewGraph) -> FutureResult<GraphSession<C>> {
        let connector = self.connector.clone();
        let database_name = self.database_name.clone();
        Box::new(
            self.connector
                .connection(&self.database_name)
                .execute(CreateGraph::new(new_graph))
                .map(|graph| GraphSession::new(graph, database_name, connector)),
        )
    }
pub fn create_graph ( & self , new_graph : NewGraph ) -> FutureResult < GraphSession < C > > { let connector = self . connector . clone ( ) ; let database_name = self . database_name . clone ( ) ; Box :: new ( self . connector . connection ( & self . database_name ) . execute ( CreateGraph :: new ( new_graph ) ) . map ( | graph | GraphSession :: new ( graph , database_name , connector ) ) , ) }
Creates a new graph in the database represented by this
`DatabaseSession`.
Creates a new graph in the database represented by this ` DatabaseSession ` .
&self
new_graph
NewGraph
&self
new_graph
NewGraph