Skip to content

The only tool you need to know what is happening and how to fix it.

331 B
Raw Blame
//go:build !telemetry_ch && !telemetry_duckdb

package telemetry

import "strings"

func isTransientBackendError(err error) bool {
	message := strings.ToLower(err.Error())
	return strings.Contains(message, "database is locked") || strings.Contains(message, "database table is locked") || strings.Contains(message, "sqlite_busy")
}