My bad, I had the syntax wrong, Got it, it was just the index and not the
actual variable, coming from Python background got things mixed.
Thanks a lot Luigi!
On Friday, May 22, 2015 at 11:03:17 AM UTC+5:30, Snigdha Batra wrote:
>
> Hi All
>
> There is a lack of documentation on Function usages in other languages
> than Java.
>
> I created a test function to execute multiple SQL Statements in a single
> DB connection.
>
> This is my code:
> var gdb = orient.getGraph()
> results = gdb.command("sql", "select name from Person limit 5" )
> print(results.getClass()) // This is an object of type Object[]
> for (var r in results) {
> print(r.getClass()) // Thiis is an object of type Integer
> print(r) // This is 0,1,2,3,4..
> }
>
> I get 0,1,2,3,4 as my result in the server console.
>
> How can I get the records as complete rows from the response in the
> result?
> I checked the source code and it converts the results into an Array if it
> is a type of Iterable.
>
> Need a little help here.. how do I get data out of the DB and in the
> correct format?
>
--
---
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.