Skip to content
This repository has been archived by the owner on Apr 29, 2019. It is now read-only.
/ odbvm Public archive

Very stupid (and abandoned) OrientDB version manager. 🐚

Notifications You must be signed in to change notification settings

whatyouhide/odbvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

odbvm(1)

odbvm is a very stupid version manager for OrientDB.

Few people will feel the need for a version manager for a database, but I happen to be one of them :) (if you're wondering, it's cause I developed MarcoPolo, an OrientDB driver for Elixir).

This repo is also archived because I haven't touched OrientDB in years now. So, cheers!

Installation

Clone the repo and add the directory to your $PATH:

$ git clone https://github.com/whatyouhide/odbvm SOME_DIR
$ export PATH="SOME_DIR:$PATH"

You'll have three new executables:

  • odbvm - used to choose versions to use and list installed versions
  • orientdb-console - used to launch an OrientDB console for the current version
  • orientdb-server - used to launch an OrientDB server for the current version

To update, just git pull inside the directory you cloned this project in.

Usage

(odbvm --help to the rescue)

Basically, you choose an OrientDB version to use with odbvm use VERSION and then use orientdb-console and orientdb-server.

For now, you have to manually download OrientDB versions and manually move them to the installations directory:

$ cd /tmp
$ wget "http://orientdb.com/download.php?email=unknown@unknown.com&file=orientdb-community-2.1.4.tar.gz&os=mac"
$ mv orientdb-community-2.1.4 ~/.odbvm/installations

Now, you can list all your installations:

$ odbvm list
orientdb-community-2.1.4

and choose an installation to use:

$ odbvm use 2.1.4
Using version: 2.1.4

As you can see, you specify only the version number when choosing the version (ignoring the orientdb-community- part).

Overriding the version

You can override the OrientDB version that orientdb-console and orientdb-server use at any time by running them with the $ORIENTDB_VERSION environment variable set:

$ ORIENTDB_VERSION="2.1.2" orientdb-console

Contributing

Just open issues, there are probably a thousand bugs in here :).

License

MIT Β© 2015 Andrea Leopardi

About

Very stupid (and abandoned) OrientDB version manager. 🐚

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages