Friday, 15 March 2013

nosql - When should I use AQL? -



nosql - When should I use AQL? -

in context of arangodb, there different database shells query data:

arangosh: javascript based console

aql: arangodb query language, see http://www.arangodb.org/2012/06/20/querying-a-nosql-database-the-elegant-way

mruby: embedded ruby

although understand utilize of javascript , mruby, not sure why learn, , utilize aql. there info on this? thought post aql straight database server?

aql arangodb's query language. has lot of ways query, filter, sort, limit , modify result returned. should noted aql reads data.

(update: reply targeting older version of arangodb. since version 2.2, features have been expanded , info modification on database possible aql. more info on that, visit documentation link @ end of answer.)

you cannot store info database aql.

in contrast aql, javascript or mruby can read , store info database. querying capabilities basic , limited, compared possibilities open aql.

it possible though send aql queries javascript. within arangosh javascript shell issue aql query this:

arangosh> db._query('for user in illustration filter user.age > 30 homecoming user').toarray() [ { _id : "4538791/6308263", _rev : "6308263", age : 31, name : "musterfrau" } ]

you can find more info on aql here: http://www.arangodb.org/manuals/current/aql.html

nosql arangodb aql

No comments:

Post a Comment