eclipse-vertx / vertx-sql-client

High performance reactive SQL Client written in Java
Apache License 2.0
894 stars 200 forks source link

CIDR datatype support in pgclient #1437

Closed AyanKoche closed 6 months ago

AyanKoche commented 6 months ago

Motivation: CIDR Data type support in vertx-pg-client

Explain here the context, and why you're making that change, what is the problem you're trying to solve. There are several data types supported by vertx-pg-client but CIDR was missing implementation. As the project I am working on requires that support, contributing it is the better way. Changes:

Have added a CIDR class
Have added 3 methods : binaryEncodeCidr, binaryDecodeCidr, textDecodeCidr
Have added tests for CIDR class
Have made relevant changes to the docs as well

Conformance:

You should have signed the Eclipse Contributor Agreement as explained in https://github.com/eclipse/vert.x/blob/master/CONTRIBUTING.md Please also make sure you adhere to the code style guidelines: https://github.com/vert-x3/wiki/wiki/Vert.x-code-style-guidelines