package sqlite

const (
	defaultRouteLogListLimit = 50
	maxRouteLogListLimit     = 200
)

func normalizeRouteLogListLimit(limit int) int {
	switch {
	case limit <= 0:
		return defaultRouteLogListLimit
	case limit > maxRouteLogListLimit:
		return maxRouteLogListLimit
	default:
		return limit
	}
}
