I need to expose this setting dynamically.
Unfortunately, I can not pass it as a parameter and use a query such as this "select from customers limit ? offset ?".
I see such exception - com.orientechnologies.orient.core.sql.OCommandSQLParsingException: Error on parsing command at position #54: Invalid LIMIT value setted to '?' but it should be a valid integer. Example: LIMIT 10
Perhaps it makes sense to add parameterized values for limit and offset?
If no secret why there is a method setLimit, but you can not make the method setOffset?