Hi,
each command has a purpose, the most versatile is the POST command/ where
you can execute everything OrientDB SQL allows.

Lvc@


On 23 December 2013 16:54, Lebnik <[email protected]> wrote:

> Thank you, Lvc@
> Maybe create a universal way to make requests, for example through the
> POST method in the JSON format, which will return a result, as is done in a
> batch queries
> https://github.com/orientechnologies/orientdb/wiki/OrientDB-REST#batch
>
> понедельник, 23 декабря 2013 г., 18:44:48 UTC+4 пользователь Lvc@ написал:
>>
>> Look at the documentation. query is executed in HTTP GET but it cannot
>> apply changes to the database (to don't violate HTTP methods conventions).
>> So use POST /command instead:
>>
>> http://localhost:2480/command/GratefulDeadConcerts/sql/
>> create%20class%20users
>>
>> Lvc@
>>
>>
>>
>> On 23 December 2013 15:38, Lebnik <[email protected]> wrote:
>>
>>> Thanks for the reply.
>>> Why, for a console and for the REST of the query different commands?
>>> Maybe you can make them similar? Or maybe you can make them aliases?
>>> Because now I can't run another query console
>>> http://localhost:2480/query/GratefulDeadConcerts/sql/
>>> create%20class%20users
>>> I get error:
>>>
>>>  com.orientechnologies.orient.core.exception.OCommandExecutionException:
>>> Cannot execute non idempotent command
>>>
>>> I understand that this is not an error, but one must do something.
>>>
>>>
>>>
>>> понедельник, 23 декабря 2013 г., 18:05:42 UTC+4 пользователь Lvc@написал:
>>>>
>>>> The same: "info class" is a console command. If you want to access to
>>>> the classes you can issue these 2 queries:
>>>>
>>>> class's information: select from ( select expand( classes ) from
>>>> metadata:schema ) where name='OUser'
>>>> class's properties: select expand( properties) from ( select expand(
>>>> classes ) from metadata:schema ) where name='OUser'
>>>>
>>>>
>>>> Lvc@
>>>>
>>>>
>>>> On 23 December 2013 14:11, Lebnik <[email protected]> wrote:
>>>>
>>>>>  And when I send request:
>>>>>
>>>>> http://localhost:2480/query/GratefulDeadConcerts/sql/info%20
>>>>> class%20OUser
>>>>>
>>>>> I get error:
>>>>>
>>>>> com.orientechnologies.orient.core.command.OCommandExecutorNo
>>>>> tFoundException: Cannot find a command executor for the command
>>>>> request: sql.info class OUser
>>>>>
>>>>>
>>>>>  --
>>>>>
>>>>> ---
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "OrientDB" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>>
>>>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>>>
>>>>
>>>>  --
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "OrientDB" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>
>>  --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OrientDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to