MCPcopy Create free account
hub / github.com/CovenantSQL/CovenantSQL / GetAllAccounts

Function GetAllAccounts

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

GetAllAccounts returns all accounts of developer.

(db *gorp.DbMap, developer int64)

Source from the content-addressed store, hash-verified

179
180// GetAllAccounts returns all accounts of developer.
181func GetAllAccounts(db *gorp.DbMap, developer int64) (keys []*DeveloperPrivateKey, err error) {
182 _, err = db.Select(&keys,
183 `SELECT * FROM "private_keys" WHERE "developer_id" = ?`, developer)
184 if err != nil {
185 err = errors.Wrapf(err, "get all developer keypairs failed")
186 }
187 return
188}
189
190// GetAccountByID return account object by keypair id.
191func GetAccountByID(db *gorp.DbMap, developer int64, id int64) (p *DeveloperPrivateKey, err error) {

Callers 1

showAllAccountsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected