MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / QuerySQLChainProfile

Method QuerySQLChainProfile

blockproducer/rpc.go:107–116  ·  view source on GitHub ↗

QuerySQLChainProfile is the RPC method to query SQLChainProfile.

(req *types.QuerySQLChainProfileReq,
	resp *types.QuerySQLChainProfileResp)

Source from the content-addressed store, hash-verified

105
106// QuerySQLChainProfile is the RPC method to query SQLChainProfile.
107func (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.
119func (s *ChainRPCService) QueryTxState(

Callers 1

TestChainFunction · 0.45

Calls 1

loadSQLChainProfileMethod · 0.80

Tested by 1

TestChainFunction · 0.36