GitHub

OrientDbSample

This repo contains a script for starting to use OrientDB with Scala language.

Requirements

Usage

This demo creates a small graph database containing three people and one company: Graph screenshot

There's only one Scala file that contains the basic steps for interacting with an OrientDB database. The steps are:

  • creating/accessing a database
  • create (if needed) three new classes that extends V: Person, Company and Project
  • create (if needed) a new class that extends E: Work
  • cleans up (if needed) all the data already present
  • creates several vertices
  • creates some edges
  • creates a LinkSet
  • executes a query and displays the results

Disclaimer: This repo is just a starting point for using OrientDB with Scala, and by no means is intended to be a good Scala design example :-)

Read the original on github.com ↗