Giter Club home page Giter Club logo

dbvisualizer-nuodb's Introduction

DbVisualizer Plugin for NuoDB

Build Status

Description

This project provides a plugin for DbVisualizer by providing two things:

  • it provides a driver declaration that enables a Wizard to aid in setting up a database connection
  • it provides a tailored profile that renders all database objects and performance statistics

Install Instructions

There are two ways to install NuoDB support, either unzip the compressed file into the DbVisualizer directory, or manually copy each directory. Each approach is detailed below.

Prerequisites

The following are prerequisites:

  • NuoDB 1.1.2, or later is installed
  • DbVisualizer 9.0.8 is installed (prior versions may be supported but are untested)
  • Maven 3 is on your path

Building a Package

Follow these instructions to build a package:

git clone https://github.com/nuodb/dbvisualizer-nuodb.git
cd dbvisualizer-nuodb
mvn clean install

A simple installer is provided in the dbvisualizer-nuodb-plugin.[tar.gz | zip] package that will install the plugin and the JDBC jar into DbVisualizer.

Obtaining a Package

Alternatively, you can download a pre-built package directly from Github:

wget https://github.com/nuodb/dbvisualizer-nuodb/releases/download/v1.0-rc2/dbvisualizer-nuodb-plugin.zip

Using the Package Installer (Mac)

To install this on Mac, assuming the default location of DbVisualizer to be the following path:

/Applications/DbVisualizer.app

Then all you need to do is:

unzip dbvisualizer-nuodb-plugin.zip
cd dbvisualizer-nuodb-plugin
./install.sh

If DbVisualizer is installed elsewhere, you can DBVISUALIZER_HOME to the appropriate location prior to running the above commands, for example:

export DBVISUALIZER_HOME=/Applications/DbVisualizer.app/Contents/Resources/app/

n.b. this path includes the path to the internal package contents; the app directory name changed between Mac releases of DbVisualizer, so this is one reason why this is set up this way, and secondly, the app directory on Mac is identical to the path for an install on Linux, so this ought to work for Linux too, I just have not tested it yet.

Manual Installation

After obtaining a package and unzipping it per above, follow these instructions to manually install the plugin if you chose to not use the installer.

Adding NuoDB JDBC Jars

Assuming you've already installed NuoDB:

mkdir -p ${DBVISUALIZER_HOME}/jdbc/nuodb/
cp /opt/nuodb/jar/nuodbjdbc.jar ${DBVISUALIZER_HOME}/jdbc/nuodb/nuodbjdbc.jar

Adding Auto-Discovery Support

Enabling auto-discovery of the NuoDB JDBC Jar file by manually adding the following XML fragment to the ${DBVISUALIZER_HOME}/resources/drivers.xml file:

    <Driver>
        <Name>NuoDB</Name>
        <Identifier>jdbc:com.nuodb</Identifier>
        <Type>nuodb</Type>
        <URLFormat>
          jdbc:com.nuodb://&lt;server&gt;:&lt;port48004&gt;/&lt;database&gt;&lt;schema&gt;
        </URLFormat>
        <WizardURLFormat>
          jdbc:com.nuodb://${Server|localhost}${Port|48004||prefix=: }/${Database}${Schema|USER||prefix=? }
        </WizardURLFormat>
        <DefaultClass>com.nuodb.jdbc.Driver</DefaultClass>
        <WebSite>http://www.dbvis.com/doc/database-drivers/</WebSite>
    </Driver>

Adding Profile Support

The DbVisualizer Professional is required in order to enable Profile support. To add profile support simply perform these commands to enable NuoDB Profiles:

export DBVISUALIZER_HOME=/Applications/DbVisualizer.app/Contents/java/app
cp profiles/nuodb.xml ${DBVISUALIZER_HOME}/resources/profiles/

Manually edit the ${DBVISUALIZER_HOME}/resources/database-mappings.xml file to include the following XML fragment:

    <DatabaseMapping>
        <If test="#db.getDatabaseType().equals('nuodb')">
            <Run expr="#me.setProfile('nuodb')"/>
        </If>
    </DatabaseMapping>

DbVisualizer Setup Instructions

To use the newly installed JDBC driver you must manually set the path to the JAR from within the Driver Manager of DBVisualizer. To do so, open Tools..Driver Manager, select NuoDB, under User Specified Driver File Paths open and browse to the path of the JDBC Jar stored under DBVisualizer.

To use the features of this plugin you must currently set the Profile for each connection; this will change when the DbVisualizer folks add this to their product and write a Java hook for NuoDB. At that point the following steps will no longer be necessary. But for now, to enable the NuoDB Profile for the connection you've established, do the following (requires the Pro version of DbVis):

  • Double click on the connection and bring up the connection properties.
  • Under "Database Profile" select "Manually Choose"
  • From list choose the "nuodb" profile, and press Apply.
  • Reconnect the connection to see all the NuoDB specific goodness!

dbvisualizer-nuodb's People

Watchers

 avatar  avatar

Forkers

vduda

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.