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

Method getDBID

sqlchain/observer/api.go:649–658  ·  view source on GitHub ↗
(vars map[string]string)

Source from the content-addressed store, hash-verified

647}
648
649func (a *explorerAPI) getDBID(vars map[string]string) (dbID proto.DatabaseID, err error) {
650 dbIDStr := vars["db"]
651 if dbIDStr == "" {
652 err = errors.New("invalid database id")
653 return
654 }
655
656 dbID = proto.DatabaseID(dbIDStr)
657 return
658}
659
660func (a *explorerAPI) getHash(vars map[string]string) (h *hash.Hash, err error) {
661 hStr := vars["hash"]

Callers 12

GetAckMethod · 0.95
GetRequestMethod · 0.95
GetResponseMethod · 0.95
GetBlockMethod · 0.95
GetBlockV3Method · 0.95
GetBlockByCountMethod · 0.95
GetBlockByCountV3Method · 0.95
GetBlockByHeightMethod · 0.95
GetBlockByHeightV3Method · 0.95
GetHighestBlockMethod · 0.95
GetHighestBlockV2Method · 0.95
GetHighestBlockV3Method · 0.95

Calls 2

DatabaseIDTypeAlias · 0.92
NewMethod · 0.65

Tested by

no test coverage detected