theory / pg-semver

A semantic version data type for PostgreSQL
Other
145 stars 24 forks source link

Add operator "not less and compatible" #30

Closed funny-falcon closed 6 years ago

funny-falcon commented 6 years ago

Rubygems has convenient operator for versions:

v ~> 1.1  => v >= 1.1 && v < 2
v ~> 1.1.2 => v >= 1.1.2 && v < 1.2

I think, it will be neat addition to this package.

theory commented 6 years ago

Check out the range type.

funny-falcon commented 6 years ago

Certainly range type is more versatile. But ~> is a bit more convenient :-)

theory commented 6 years ago

Happy to consider a pull request. As it is, I cannot read your examples. There are other operators in there.