This method executes idempotent OrientDB SQL queries.
OrientDB makes a distinction between idempotent queries that read data from the database and non-idempotent commands that modify the records. Using this method you can retrieve and operate on result-sets from OrientDB.
In the event that you need to execute a non-idempotent command on the database, see the
OResultSet ODatabaseDocument().query(String query, Map args)
||Defines the query you want to execute.|
||Defines a map of parameters to use in formatting the query.|
This method returns an
OResultSet instance, that contains the result-set of your query. Remember that you need to close a result-set when you're done with it, in order to free up resources.