package db

// ResolveDBPath returns the inputPath if non-empty, otherwise returns the
// fallback path. This is used by tools that accept an explicit DBPath in
// their Input struct but need a default when not provided.
func ResolveDBPath(inputPath, fallback string) string {
	if inputPath != "" {
		return inputPath
	}
	return fallback
}