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

Function deleteShardChain

blockproducer/storage.go:362–374  ·  view source on GitHub ↗
(id proto.DatabaseID)

Source from the content-addressed store, hash-verified

360}
361
362func deleteShardChain(id proto.DatabaseID) storageProcedure {
363 return func(tx *sql.Tx) (err error) {
364 log.WithFields(log.Fields{
365 "profile_database_id": id,
366 }).Debug("deleting profile")
367 _, err = tx.Exec(`DELETE FROM "shardChain" WHERE "id"=?`, id)
368 if err != nil {
369 return
370 }
371 _, err = tx.Exec(`DELETE FROM "indexed_shardChains" WHERE "id" = ?`, id)
372 return
373 }
374}
375
376func updateProvider(profile *types.ProviderProfile) storageProcedure {
377 var (

Callers 1

compileChangesMethod · 0.85

Calls 3

WithFieldsFunction · 0.92
DebugMethod · 0.80
ExecMethod · 0.65

Tested by

no test coverage detected