Versions in this module Expand all Collapse all v0 v0.1.65 Oct 27, 2026 v0.1.64 Oct 27, 2026 v0.1.63 Oct 25, 2026 v0.1.62 Oct 23, 2026 v0.1.61 Oct 20, 2026 v0.1.60 Oct 19, 2026 Changes in this version + const TimeLayout + var Shapes = []Shape + func Analyze(d *Deadlock) + func ApplyCatalog(graphs []Graph, currentDatabaseID int, entries []CatalogEntry) + func FormatID(at time.Time, processID string) string + func ParseID(id string) (time.Time, string, error) + func Resolve(ctx context.Context, db *sql.DB, graphs []Graph) error + type CatalogEntry struct + HobtID int64 + Index string + IndexType string + Object string + type Deadlock struct + Database string + ID string + Indexes []string + LockTypes []string + Objects []string + Participants int + Processes []Process + Resources []Resource + Shape Shape + Signature string + Timestamp time.Time + VictimApp string + VictimHost string + VictimStatement string + Victims int + type Frame struct + Line int + ProcName string + SQLHandle string + StmtEnd *int + StmtStart *int + Text string + func (f Frame) OffsetsUnavailable() bool + type Graph struct + XML string + func DecodeEvent(eventXML string) (Graph, error) + func DecodeReport(at time.Time, reportXML string) (Graph, error) + func (g Graph) Pretty() api.Text + type IndexType string + const IndexClustered + const IndexHeap + const IndexNonclustered + type LockRequest struct + Mode string + ProcessID string + RequestType string + func (r LockRequest) Granted() bool + type Process struct + ClientApp string + Database string + ECID int + Frames []Frame + Host string + HostPID int + ID string + InputBuffer string + InputBufferTruncated bool + IsolationLevel string + LastTranStarted string + LockMode string + LogUsed int64 + Login string + Priority int + SPID int + Statement string + StatementLength int + Status string + TranCount int + TransactionName string + Victim bool + WaitResource string + WaitTimeMs int64 + WaitingSince *time.Time + type Resolution string + const ResolutionNamed + const ResolutionNotApplicable + const ResolutionOtherDatabase + const ResolutionRebuiltSince + const ResolutionResolved + const ResolutionUnresolved + type Resource struct + Attrs map[string]string + DatabaseID int + FileID int + HobtID int64 + Index string + IndexType IndexType + Kind string + LockID string + Mode string + Object string + ObjectName string + Owners []LockRequest + PageID int64 + Resolution Resolution + Waiters []LockRequest + type Shape string + const ShapeKeyLookupVsWriter + const ShapeOther + const ShapeScanVsWriter + func (s Shape) Label() string + func (s Shape) Style() string