manganese_core_kit v0.1.0 Manganese.CoreKit.Structs.Version

A SemVer version.

Deserialization

See from_string/1

Serialization

The version struct implements the String.Chars protocol.

Manipulation

Link to this section Summary

Functions

The PostgreSQL type used to represent a version.

Link to this section Types

Link to this type

t()

t() :: %Manganese.CoreKit.Structs.Version{
  major: non_neg_integer(),
  minor: non_neg_integer(),
  patch: non_neg_integer()
}
Link to this type

t_external()

t_external() :: String.t()

Link to this section Functions

Link to this function

from_string(string)

from_string(String.t()) :: t()
Link to this function

increment(version, version_type \\ :patch)

Link to this function

type()

type() :: :string

The PostgreSQL type used to represent a version.