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

Function deleteAccount

blockproducer/storage.go:304–312  ·  view source on GitHub ↗
(address proto.AccountAddress)

Source from the content-addressed store, hash-verified

302}
303
304func deleteAccount(address proto.AccountAddress) storageProcedure {
305 return func(tx *sql.Tx) (err error) {
306 log.WithFields(log.Fields{
307 "account_address": address.String(),
308 }).Debug("deleting account")
309 _, err = tx.Exec(`DELETE FROM "accounts" WHERE "address"=?`, address.String())
310 return
311 }
312}
313
314func updateShardChain(profile *types.SQLChainProfile) storageProcedure {
315 var (

Callers 1

compileChangesMethod · 0.85

Calls 4

WithFieldsFunction · 0.92
DebugMethod · 0.80
ExecMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected