MarcoPolo.QueryParser
Facilities for parsing OrientDB queries.
Summary↑
query_type(query) | Returns the query type of the given |
Functions
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 likeSELECT
; it's the equivalent ofcom.orientechnologies.orient.core.sql.query.OSQLSynchQuery
.:sql_command
: a non-idempotent command (INSERT
,UPDATE
, etc.); it's the equivalent ofcom.orientechnologies.orient.core.sql.OCommandSQL
.