Using NPM Packages for ArangoDB: Enhance Functionality | 2013
ArangoDB follows the Common.JS specification for modules. However, it would be very convenient, if there was an easy way to install a package like “underscore.js”. These package are, for instance, available using NPM. There is a draft for packages on Common.JS which seems to be compatible with NPM.
NPM has a neat way of dealing with version conflicts. Basically, it allows multiple versions to exists simultaneously. For example, assume you have 4 packages A, B, C, D. A requires B and C and D, B requires C. Then directory layout might be as follows.
node_modules
|
+- A
| |
| +- node_modules
| |
| +- B
| | |
| | +- node_modules
| | |
| | +- C (1.0.0)
| |
| +- C (2.0.0)
|
+- D
Package B will see package C in version 1.0.0, while package A sees package C in version 2.0.0.
<!--more-->
This behaviour is easy to implement in ArangoDB. In addition to “Module” there is now a “Package”. Each package has it own module cache. When a package requires a module, the package hierarchy is traversed from the current package to the root (or global) package, until the module is found.
In order to use underscore, switch into the package directory and use NPM to install it
unix> cd /tmp/packages
unix> npm install underscore
npm http GET https://registry.npmjs.org/underscore
npm http 304 https://registry.npmjs.org/underscore
underscore@1.4.4 node_modules/underscore
Now start arangosh with the new “–javascript.package-path” option and enjoy underscore.
unix> arangosh --javascript.package-path /tmp/packages
arangosh> var _ = require("underscore");
arangosh> _.max([1,2,3])
3
ArangoDB 1.2: Simplifications Overview | ArangoDB 2013
The upcoming 1.2 version of ArangoDB will provide several improvements and fixes.
Apart from the additional features the new version provides, the following changes might also be very interesting for users and driver maintainers:
(more…)
ArangoDB 1.2: Explore New Features | ArangoDB 2013
ArangoDB 1.2 API Changes: What You Need to Know | 2013
Apart from introducing several new features, the upcoming 1.2 version of ArangoDB will change a few of the existing REST API return values.
The API changes were necessary to make the ArangoDB’s APIs easier to use, more robust and portable.
We hope that the following list provides 3rd party client & driver maintainers with enough information to update drivers to work with ArangoDB 1.2.
(more…)
AQL: Query Documents and Graphs Easily | ArangoDB 2013
Note: The following article was originally written as an answer in ArangoDB google group. It may help other people to understand the scope of ArangoDB and/or AQL, so we posted it here as well.
AQL, the query language, provides access to the data which is stored inside collections. The collections contain documents, identified by unique keys.
Useful ArangoSH Tips and Tricks | ArangoDB 2012
arangosh, The ArangoDB shell, provides some options that may simplify an ArangoDB user’s life. Some of these options have been added in version 1.1.2, and some options have been around for a while but are probably still less known. It’s time to showcase them.
(more…)
Looking for Beta Tester for the Windows Port
We have a beta version of the Windows port ready for testing. If you are feeling adventurous you can try the brand new beta port of ArangoDB 1.1.1 for windows. Please note, that currently this port only contains the server. The following pieces are still missing:
- no management front-end to start/stop the server or install it as Windows service; the server must be started using a batch script
- arangosh: instead you can use the ArangoDB shell using the admin front-end in the browser
- arangoimp (bulk-importer)
To test the windows port:
- download the installer
- execute the MSI
- this will install the server and the support files und "c:\triagens" (or whatever directory you select)
- execute the batch script "serverExample.bat" in that directory
- wait until you see "Have fun"
- point your browser to "http://localhost:9000"
We have checked the MSI with Avira and tests it under XP, W7, W8. But there will be bugs. Please help us by reporting bugs you encounter using
https://github.com/triAGENS/ArangoDB
If you have improvements or comments, please let us know using the Google group.
ArangoDB Version 1.1 Released: What’s New? | ArangoDB 2012
ArangoDB version 1.1 was released today. Builds for major distributions can be found on the downloads page.
The new version offers several improvements, namely:
- an API for batch requests
- partial updates (i.e. HTTP PATCH) for documents
- improvements for AQL
- disk synchronisation improvements
- a statistics interface
- SSL support
The complete list can be found here.
If you plan on upgrading from an existing ArangoDB 1.0 to version 1.1, please make sure to also read the upgrade notes.
ArangoDB PHP Driver Version 1.0 Released | ArangoDB 2012
Yesterday version 1.0 of the PHP driver for ArangoDB was released. It contains basic support for edges as well as fixes and tests. Check out the Changelog for further details. Many thanks go to Frank Mayer for his contribution! 🙂
There is also a comprehensive PHP driver tutorial available on Github.
ArangoDB: Using JavaScript in the Database | ArangoDB 2012
Jan was invited as a speaker to “Js.Everywhere” in Paris. He talked about using Javascript in a database, well, ArangoDB, to be precise, giving lots of examples on “actions” and related concepts in ArangoDB.
Get the latest tutorials,
blog posts and news:
Thanks for subscribing! Please check your email for further instructions.