Question about PRs (I have a new function to contribute)
- Dominant language
- C++
- Stars
- 13
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
Hey folks!
I make regular use of this extension and have made a function `expand_cidr()` that takes in an IP address (network or bare) and returns the expanded IPs from the CIDR in a list/array. Handles IPv4 & v6.
I'm curious if (a) y'all accept PRs and (b) if so, what should I do to ensure the least amount of work on your end?
A short example:
```
π¦>SELECT UNNEST(expand_cidr('192.168.1.0/32'::INET)) ip;
βββββββββββββββ
β ip β
β inet β
βββββββββββββββ€
β 192.168.1.0 β
βββββββββββββββ
π¦>SELECT UNNEST(expand_cidr('192.168.1.0/30'::INET)) ip;
βββββββββββββββ
β ip β
β inet β
βββββββββββββββ€
β 192.168.1.0 β
β 192.168.1.1 β
β 192.168.1.2 β
β 192.168.1.3 β
βββββββββββββββ
π¦>FROM (SELECT UNNEST(expand_cidr('192.168.1.0/16'::INET)) ip) SELECT COUNT(ip);
βββββββββββββ
β count(ip) β
β int64 β
βββββββββββββ€
β 65536 β
βββββββββββββ
π¦>
```
Please ignore this PR: https://github.com/duckdb/duckdb-inet/pull/3
This is the correct PR: https://github.com/duckdb/duckdb-inet/pull/5
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.