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!
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 versionsorientdb-console
- used to launch an OrientDB console for the current versionorientdb-server
- used to launch an OrientDB server for the current version
To update, just git pull
inside the directory you cloned this project in.
(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).
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
Just open issues, there are probably a thousand bugs in here :).
MIT Β© 2015 Andrea Leopardi