Socket
Socket
Sign inDemoInstall

@acastellon/arango

Package Overview
Dependencies
19
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @acastellon/arango

arangodb persistence interface


Version published
Weekly downloads
7
Maintainers
1
Created
Weekly downloads
 

Readme

Source

arango

A Simplified interface to arango database using the arangojs library At the moment is accessing only to JSON Documents, not graph.

configuration

saved for example as 'config.arango.js'

module.exports = {

  CERTIFICATION_PATH : '/opt/brdb/Certificate' 
        /* note: the certification requires a 'ca.pem' file */
        /* @TODO: externalize it, and make it more flexible */
        
  ,ARANGO_URL: 'http://127.0.0.1:8529'
  ,ARANGO_USER: 'root'
  ,ARANGO_PASSWORD: 'root'
  ,ARANGO_DATABASE: 'test'   
  ,TRACES : false
}
usage
const config = require('./config.arango.js');
const db     = require('@acastellon/arango')(config);
methods

find object(s) that contains all the parameters described in a collection

find(parameters, collection)    

find object(s) that contains ANY parameter described in a collection

findAQL(parameters, collection)

find object(s) using directly the AQL language from ArangoDB

findAQLSentence(query)

save a document object into a collection

save(document, collection)

delete a document object from a collection

remove(document, collection)

Keywords

FAQs

Last updated on 31 Jan 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc