On Thursday, June 4, 2015 at 10:38:48 PM UTC+2, l.garulli wrote:
>
> Hi Hartmut,
> Where did you find the "return getDatabase() ..." ?
>
> http://orientdb.com/docs/2.0/orientdb.wiki/Functions.html
>>Execute a query
>>
>>Query is an idempotent command. To execute a query use the query()method. 
Example:
>>
>>return orient.getDatabase().query("select name from ouser");

>>Execute a command
>>
>>Commands can be written in any language supported by JVM. By default 
OrientDB supports "SQL" and "Javascript".
>>
>>SQL Command
>>
>>var gdb = orient.getGraph();
>>var results = gdb.command( "sql", "select from Employee where company = 
?", [ "Orient Technologies" ] );

This might make sense to experienced bodies, for somebody less familar with 
Orientdb and its diverse API's its confusing.
So I just followed the »instructions«  – the outcome is partly documentated 
in this thread.



 

> I don't understand where is the problem. Please could you elaborate it 
> more?
>
> Best Regards,
>
> Luca Garulli
> CEO at Orient Technologies LTD
> the Company behind OrientDB <http://orientdb.com>
>
> On 4 June 2015 at 21:59, hartmut bischoff <[email protected] <javascript:>
> > wrote:
>
>> The documentation is a nightmare.
>>
>> http://orientdb.com/docs/last/SQL-Create-Function.html
>>
>> seems to be the acutal documentation ....
>>
>> The command "Create Function" is accepted,  and  inserts a function into 
>> the OFunctions Class.
>> Surprisingly in Studio this function is marked as "SQL"  (capital).
>>
>> No need to reference the Database, just added the plain query  .... and 
>> anything works.
>>
>> Perhaps someone can delete the part of the documentation  where  "return 
>> getDatabase() ..." is used, which  points in the very wrong direction  ...
>>
>>
>>  -- 
>>
>> --- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 

--- 
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/d/optout.

Reply via email to