-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IP address integer to string and string to integer functions #86
Comments
let me also suggest functionsipmask(str)
ipmasktolen(str)
ipmatch(pattern, needle)
and the mysql functions
and the logical derivatives
|
Sorry, I have no plans to add new features at this time. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be good to add functions that convert IPv4 and IPv6 address to/from strings.
A use case I had is you get a .csv file with string IPs, but it is much more efficient to handle them as integer in DB.
E.g.:
would output:
At: https://stackoverflow.com/questions/7638238/sqlite-ip-address-storage/76520885#76520885 I show an implementation of str -> int, but would need to add the inverse and IPv6 support too.
Lazy to make a clean pull request here, but it's an idea.
The text was updated successfully, but these errors were encountered: