PGVersion: a class to manage PostgreSQL Version (strings) within a Perl 6 Program
As you probably already know, PostgreSQL has changed its versioning number scheme from a `major.major.minor` approach to a concise `major.minor` one. Both are simple enought to be evaluated with a regular expression, but I found myself wrinting the same logic over and over, so I decided to write a minimal class to do the job for me and provide several information.
Oh, and this is Perl 6 (that I'm still learning!).
The idea is to have something like the following working:
use Fluca1978::Utils::PostgreSQL::PGVersion;
for 10.1 11beta1 11.1 9.…