pub fn read_db<Block>(db: &KeyValueDB, col_index: Option<u32>, col: Option<u32>, id: BlockId<Block>) -> client::error::Result<Option<DBValue>>
	where
		Block: BlockT,
{
	block_id_to_lookup_key(db, col_index, id).and_then(|key| match key {
		Some(key) => db.get(col, key.as_ref()).map_err(db_err),
		None => Ok(None),
	})
}
/// Read database column entry for the given block.
Read database column entry for the given block.
Read database column entry for the given block .
pub fn read_db<Block>(db: &KeyValueDB, col_index: Option<u32>, col: Option<u32>, id: BlockId<Block>) -> client::error::Result<Option<DBValue>>
	where
		Block: BlockT,
{
	block_id_to_lookup_key(db, col_index, id).and_then(|key| match key {
		Some(key) => db.get(col, key.as_ref()).map_err(db_err),
		None => Ok(None),
	})
}
pub fn read_db < Block > ( db : & KeyValueDB , col_index : Option < u32 > , col : Option < u32 > , id : BlockId < Block > ) -> client :: error :: Result < Option < DBValue > > where Block : BlockT , { block_id_to_lookup_key ( db , col_index , id ) . and_then ( | key | match key { Some ( key ) => db . get ( col , key . as_ref ( ) ) . map_err ( db_err ) , None => Ok ( None ) , } ) }
Read database column entry for the given block.
Read database column entry for the given block .
db
&KeyValueDB
col_index
Option<u32>
col
Option<u32>
id
BlockId<Block>
db
&KeyValueDB
col_index
Option<u32>
col
Option<u32>
id
BlockId<Block>