Replies: 1 comment 2 replies
-
Sequel.extension :pg_inet_ops
ds = DB.from{public[:prefixorigins4]}
ds.where{Sequel.pg_inet_op(:prefix).contains_or_contained_by(inet('172.22.149.114/31'))}
ds.where{{masklen(:prefix) => 24}} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I want to formulate a query in Sequel to get all rows that contain a subnet in the
prefix
column that is equal to or contains the specified one.Furthermore, I would like to make a query so that I get all subnets that have a certain subnet mask.
Does anyone know how to do this? I have to admit that I'm a little bit worn out.
Beta Was this translation helpful? Give feedback.
All reactions