QuerySQLChainProfile is the RPC method to query SQLChainProfile.
(req *types.QuerySQLChainProfileReq, resp *types.QuerySQLChainProfileResp)
| 105 | |
| 106 | // QuerySQLChainProfile is the RPC method to query SQLChainProfile. |
| 107 | func (s *ChainRPCService) QuerySQLChainProfile(req *types.QuerySQLChainProfileReq, |
| 108 | resp *types.QuerySQLChainProfileResp) (err error) { |
| 109 | p, ok := s.chain.loadSQLChainProfile(req.DBID) |
| 110 | if ok { |
| 111 | resp.Profile = *p |
| 112 | return |
| 113 | } |
| 114 | err = errors.Wrap(ErrDatabaseNotFound, "rpc query sqlchain profile failed") |
| 115 | return |
| 116 | } |
| 117 | |
| 118 | // QueryTxState is the RPC method to query a transaction state. |
| 119 | func (s *ChainRPCService) QueryTxState( |