0% found this document useful (0 votes)
10 views1 page

ArangoDB Document Management Guide

This document provides an overview of common methods for starting and accessing ArangoDB, managing databases and collections, performing operations on documents and edges, executing AQL queries, and getting statistics. It lists the most frequently used options for starting the ArangoDB server and shell, and describes methods for creating, replacing, updating, and removing documents, collections, and databases.

Uploaded by

Kangogo Pett
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

ArangoDB Document Management Guide

This document provides an overview of common methods for starting and accessing ArangoDB, managing databases and collections, performing operations on documents and edges, executing AQL queries, and getting statistics. It lists the most frequently used options for starting the ArangoDB server and shell, and describes methods for creating, replacing, updating, and removing documents, collections, and databases.

Uploaded by

Kangogo Pett
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Starting & Accessing Document methods

./arangod /path/to/my/db start server [Link](document) get document by identifier


[Link] admin front end [Link](data) create new document
./arangosh start ArangoDB shell [Link](document, data) replace existing document
start_pretty_print(); format output nicely [Link](document) partially update
arangod --console --[Link] error
start emergency console [Link](document) remove document
/path/to/my/db
db._document(document|document-handle) get document by identifier|handle
arangod frequently used starting options db._replace(document|document-handle,data) replace existing document
--[Link] path/to/file set log file or + for stdout db._update(document) partially update document
--[Link] set log level: fatal, error, warning, info, debug, trace db._remove(document) remove document
--[Link] protocol://address:port set address and port for Clients
Edges
Database management methods [Link](document) save new edge
db._createDatabase(database-name) create database [Link](vertex) find edges connected to vertex
db._dropDatabase(database-name) drop a database [Link](vertices) find all edges ending in vertex (inbound)
db._useDatabase(database-name) change into an existing database [Link](vertices) find all edges starting at vertex (outbound)
db._databases() list all databases
Collection methods
Collection management methods [Link]() select all documents and return cursor
db._create(collection-name, properties) create collection (with optional properties) [Link]() select a random document
db._createEdgeCollection(collection-name,
create an edge collection [Link](example) select all documents that match example
properties)
db._collection(collection-name|collection-id) get collection [Link](example) select first document that matches example
db._collections() List all collections [Link](example) remove all documents that match example
[Link]
[Link]-name get a collection by name replace all documents that match example
(example, newValue)
[Link]
db._drop(collection-name|collection-id) drop collection with indexes update all documents that match example
(example, newValue)
db._truncate(collection-name|collection-id) remove collection, keep indexes [Link]() return the number of documents
[Link]() convert the collection into an array of documents
Collection methods
[Link]() drop collection with indexes AQL queries
[Link]() remove documents, keep indexes db._query(query).toArray() executes AQL query
[Link]() get all document properties db._query(query, bindParameters).toArray() executes AQL query with bind parameters
[Link](newProperties) set all newProperties db._explain(query, bindParameters) prints the execution plan of the query
[Link]() get all collection figures
[Link]() load collection into memory
[Link]() start to unload a collection
[Link](new-name) rename collection to new-name

You might also like