/// Return a table for the subgraph
Return a table for the subgraph
Return a table for the subgraph
fn table(&self, subgraph: &SubgraphDeploymentId) -> Result<Table, StoreError> {
        let mut tables = self.tables.borrow_mut();
        match tables.get(subgraph) {
            Some(table) => Ok(table.clone()),
            None => {
                let table = Table::new(self.conn, subgraph)?;
                tables.insert(subgraph.clone(), table.clone());
                Ok(table)
            }
        }
    }
fn table ( & self , subgraph : & SubgraphDeploymentId ) -> Result < Table , StoreError > { let mut tables = self . tables . borrow_mut ( ) ; match tables . get ( subgraph ) { Some ( table ) => Ok ( table . clone ( ) ) , None => { let table = Table :: new ( self . conn , subgraph ) ? ; tables . insert ( subgraph . clone ( ) , table . clone ( ) ) ; Ok ( table ) } } }
Return a table for the subgraph
Return a table for the subgraph
&self
subgraph
&SubgraphDeploymentId