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

Function AddAuditRecord

cmd/cql-eth-exchange/audit_record.go:65–69  ·  view source on GitHub ↗

AddAuditRecord saves new record.

(db *gorp.DbMap, r *AuditRecord)

Source from the content-addressed store, hash-verified

63
64// AddAuditRecord saves new record.
65func AddAuditRecord(db *gorp.DbMap, r *AuditRecord) (err error) {
66 r.Time = time.Now().Unix()
67 err = db.Insert(r)
68 return
69}
70
71// FindAuditRecords find audit records.
72func FindAuditRecords(db *gorp.DbMap, h string, fromTime int64, toTime int64, offset int64, limit int64) (err error) {

Callers 5

UpsertTxFunction · 0.85
InvalidateTxFunction · 0.85
saveTxMethod · 0.85
processPendingTxsMethod · 0.85

Calls 1

InsertMethod · 0.80

Tested by

no test coverage detected