mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel
This commit is contained in:
commit
a10f05f0ed
|
@ -1,7 +1,7 @@
|
||||||
!CHAPTER How to invoke AQL
|
!CHAPTER How to invoke AQL
|
||||||
|
|
||||||
You can run AQL queries from your application via the HTTP REST API. The full
|
You can run AQL queries from your application via the HTTP REST API. The full
|
||||||
API description is available at [Http Interface for AQL Query Cursor](../HttpAqlQueryCursor/README.md).
|
API description is available at [Http Interface for AQL Query Cursors](../HttpAqlQueryCursor/README.md).
|
||||||
|
|
||||||
You can also run AQL queries from arangosh. To do so, you can use the *_query* method
|
You can also run AQL queries from arangosh. To do so, you can use the *_query* method
|
||||||
of the *db* object. This will run the specified query in the context of the currently
|
of the *db* object. This will run the specified query in the context of the currently
|
||||||
|
@ -24,10 +24,13 @@ return an empty list. To retrieve statistics for a data-modification query, use
|
||||||
|
|
||||||
arangosh> db._query("FOR i IN 1..100 INSERT { _key: CONCAT('test', TO_STRING(i)) } INTO mycollection").getExtra();
|
arangosh> db._query("FOR i IN 1..100 INSERT { _key: CONCAT('test', TO_STRING(i)) } INTO mycollection").getExtra();
|
||||||
{
|
{
|
||||||
"operations" : {
|
"stats" : {
|
||||||
"executed" : 100,
|
"writesExecuted" : 100,
|
||||||
"ignored" : 0
|
"writesIgnored" : 0,
|
||||||
}
|
"scannedFull" : 0,
|
||||||
|
"scannedIndex" : 0
|
||||||
|
},
|
||||||
|
"warnings" : [ ]
|
||||||
}
|
}
|
||||||
|
|
||||||
The *_query* method is a shorthand for creating an ArangoStatement object,
|
The *_query* method is a shorthand for creating an ArangoStatement object,
|
||||||
|
|
Loading…
Reference in New Issue