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

Method loadSQLChainProfile

blockproducer/chain_io.go:106–115  ·  view source on GitHub ↗
(databaseID proto.DatabaseID)

Source from the content-addressed store, hash-verified

104}
105
106func (c *Chain) loadSQLChainProfile(databaseID proto.DatabaseID) (profile *types.SQLChainProfile, ok bool) {
107 c.RLock()
108 defer c.RUnlock()
109 profile, ok = c.immutable.loadSQLChainObject(databaseID)
110 if !ok {
111 log.Warnf("cannot load sqlchain profile with databaseID: %s", databaseID)
112 return
113 }
114 return
115}
116
117func (c *Chain) loadSQLChainProfiles(addr proto.AccountAddress) []*types.SQLChainProfile {
118 c.RLock()

Callers 2

QuerySQLChainProfileMethod · 0.80

Calls 2

WarnfFunction · 0.92
loadSQLChainObjectMethod · 0.80

Tested by

no test coverage detected