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

Function GetAccountByID

cmd/cql-proxy/model/keystore.go:191–199  ·  view source on GitHub ↗

GetAccountByID return account object by keypair id.

(db *gorp.DbMap, developer int64, id int64)

Source from the content-addressed store, hash-verified

189
190// GetAccountByID return account object by keypair id.
191func GetAccountByID(db *gorp.DbMap, developer int64, id int64) (p *DeveloperPrivateKey, err error) {
192 err = db.SelectOne(&p,
193 `SELECT * FROM "private_keys" WHERE "id" = ? AND "developer_id" = ? LIMIT 1`,
194 id, developer)
195 if err != nil {
196 err = errors.Wrapf(err, "get account info failed")
197 }
198 return
199}

Callers 7

ApplyTokenTaskFunction · 0.92
getCurrentProjectDBFunction · 0.92
createDatabaseFunction · 0.92
TopUpTaskFunction · 0.92
getProjectDBFunction · 0.92
SetIfNoMainAccountFunction · 0.85
GetMainAccountFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected