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

Function GetDeveloper

cmd/cql-proxy/model/developer.go:166–173  ·  view source on GitHub ↗

GetDeveloper fetches the developer user info.

(db *gorp.DbMap, developerID int64)

Source from the content-addressed store, hash-verified

164
165// GetDeveloper fetches the developer user info.
166func GetDeveloper(db *gorp.DbMap, developerID int64) (d *Developer, err error) {
167 err = db.SelectOne(&d,
168 `SELECT * FROM "developer" WHERE "id" = ? LIMIT 1`, developerID)
169 if err != nil {
170 err = errors.Wrapf(err, "get developer info failed")
171 }
172 return
173}
174
175// GetMainAccount fetches the main account/keypair object of developer.
176func GetMainAccount(db *gorp.DbMap, developerID int64) (p *DeveloperPrivateKey, err error) {

Callers 4

showAllAccountsFunction · 0.92
getDeveloperInfoFunction · 0.92
SetIfNoMainAccountFunction · 0.85
GetMainAccountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected