SkillAgentSearch skills...

Guinevere

Plug-and-play configuration of ArangoDB offering creation of Collections, Analyzers, Views, Executor to execute raw AQL queries and DB transactions

Install / Use

/learn @aaqibb13/Guinevere
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

GitHub go.mod Go version (subdirectory of monorepo) GitHub last commit

AranGO-base-setup

This respository contains database configuration for ArangoDB database for your Go project along with base-crud, creation of Collections, Graphs (coming soon) Custom Analyzers, Views, Query Executor and DB Transaction

Direct Dependencies (Minimalistic)

  1. go-driver: The go-driver is leveraged to provide the functionality a user might need.

  2. viper: is used to read config from environment variables.

  3. logrus: is used for logging so that you can further make use of extended functionality of the logrus package in case you might want to set the formatting levels, make your logs more verbose.

    Note: logrus can be omitted if you feel the need to.

Included functionalities

The default incorporated functionalities that comes along are:

  • [x] Creation of Databases and corresponding users
  • [x] Creation of Collections,Custom Analyzer and Views at the startup (preferably)
  • [x] Query Executor for Execution of raw AQL queries
  • [x] QueryExecutor with cursor full count while executing raw AQL queries
  • [x] Initializing a DB Transaction

TODO

  • Delayed
  • [ ] Add tests for every function (Unit tests)
  • [ ] Add creation of Graphs
  • [ ] Add different analyzer types (like norm, ngram, pipeline etc)
  • [ ] Include Edit View functionality (ArangoDB does not support editing the views by default)
  • [ ] Improve documentation and code structure
  • [ ] Add scripts for backing up data

How to use:

  • Clone the repository at your preferred location:

        git clone https://github.com/aaqibb13/guinevere.git
    
  • Run:

        go mod tidy
    
  • You're ready to use the base setup.

Running arangodb locally

  • Make sure you have docker installed on your system (based on which machine you're on: Linux, Mac or Windows)

  • cd into guinevere/deployments and run:

      docker-compose -f arango-docker-compose.yml up --build -d db
    
  • You should be able to view the ArangoDB server running on 127.0.0.1:8529 which you can access using the credentials specified in the arango-docker-compose.yml file.

View on GitHub
GitHub Stars10
CategoryData
Updated1y ago
Forks1

Languages

Go

Security Score

80/100

Audited on Aug 9, 2024

No findings