MarcoPolo.QueryParser

Facilities for parsing OrientDB queries.

Summary

query_type(query)

Returns the query type of the given query

Functions

query_type(query)

Specs:

  • query_type(binary) :: :sql_query | :sql_command

Returns the query type of the given query.

The possible query types are:

  • :sql_query: an idempotent SQL query like SELECT; it's the equivalent of com.orientechnologies.orient.core.sql.query.OSQLSynchQuery.
  • :sql_command: a non-idempotent command (INSERT, UPDATE, etc.); it's the equivalent of com.orientechnologies.orient.core.sql.OCommandSQL.