Skip to content
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

"LIKE" in query #69

Open
lpcs007 opened this issue Feb 22, 2021 · 1 comment
Open

"LIKE" in query #69

lpcs007 opened this issue Feb 22, 2021 · 1 comment

Comments

@lpcs007
Copy link

lpcs007 commented Feb 22, 2021

I need to use LIKE in the query and I did not find this information in the documentation.

I need something like that:
`$util->getAll(array(), RouterOS\Query::where('user-ip', '10.10.%', 'LIKE'));

I checked each file in the repository and I didn't find that information.
Is there another way to make this filter?

@boenrobot
Copy link
Member

boenrobot commented Feb 22, 2021

Unfortunately, that's not possible on a protocol level. See this part of the spec.

The only way you can do that to filter whatever else you can, obtain that from the router, and then further filter the results on the PHP side.

MikroTik once upon a time announced they may eventually (at an unspecified time in the future) maybe add support for regex matches to the protocol, which would allow you to do this filtering, but that's not the case yet it seems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants