To avoid sending a large and complex string every time (one transaction I'm using is ~500 lines long), I'd prefer to have it stored server-side, and called more simply from Java.Į.g. Variable assignment within a query allows to build very complex. It can be used to return a static value, such as a string: RETURN Hello. AQL is equipped with multiple functions for all supported data types. #ARANGODB AQL FUNCTIONS DRIVER#I'm using the Java driver to connect to ArangoDB, which performs transactions by sending a Javascript function as a string. Retrieving data from the database with AQL does always include a RETURN operation. LENGTH () can also determine the number of elements in an array, the number of attribute keys of an object / document and the amount of documents in a collection. If a number is passed, it will be casted to string first. You may check out the related API usage on the sidebar. I know that ArangoDB allows for custom AQL functions to be defined server side, but is it possible to define server-side Javascript functions that can be called during transactions? Determine the character length of a string. Determine the character length of a string. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |