package caqti

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Version.Infix

Asymmetric infix oparator for testing version ranges. The first argument is a version number, typically obtained from the server_version fields of Template.Dialect.t, and the second argument is a string representation of the version to compare against.

An unknown version compares before other versions. Use Template.Version.is_known to implement a different logic. See Template.Version.compare for details about the comparison algorithm.

val (=*) : t -> string -> bool
val (<>*) : t -> string -> bool
val (<*) : t -> string -> bool
val (<=*) : t -> string -> bool
val (>*) : t -> string -> bool
val (>=*) : t -> string -> bool