Repository navigation
feat(data-types): CIDR, INET, MACADDR support for Postgres - #9567
Conversation
d205b95 to
006d3a4
Compare
| "toposort-class": "^1.0.1", | ||
| "uuid": "^3.2.1", | ||
| "validator": "^10.0.0", | ||
| "validator": "^10.4.0", |
There was a problem hiding this comment.
Needed for isIPRange.
|
Tests are now passing (the appveyor failure looks to be an existing flaky test). Let me know if more tests make sense. I'll also try to add some relevant docs to |
| } | ||
| inherits(CIDR, BaseTypes.CIDR); | ||
|
|
||
| CIDR.parse = function parse(value) { |
There was a problem hiding this comment.
No need to add parse if we are not modifying this value, I think just defining oids should be enough for all three of these types
| array_oids: [] | ||
| }; | ||
|
|
||
| function CIDR() { |
There was a problem hiding this comment.
Even these function definitions are not required, as there is no special handling required for Postgres initializing of these datatypes.
Just define OIDs for these types at the top with others
|
@sushantdhiman Thanks for shepherding this. Any chance it could get merged into v4? |
|
@gabegorelick Please open a new PR targeting v4 |
|
Thanks @sushantdhiman. I opened #9571 for that. |
Pull Request check-list
npm run testornpm run test-DIALECTpass with this change (including linting)?Description of change
Adds support for Postgres network address types.
This is a continuation of work started by @tadman in #8154.
Closes #8154