An open API service indexing awesome lists of open source software.

https://github.com/todesking/jcon

A generic JDBC console
https://github.com/todesking/jcon

Last synced: about 1 month ago
JSON representation

A generic JDBC console

Awesome Lists containing this project

README

          

# JCON: Generic JDBC console

## Install

The project used [Conscript](https://github.com/n8han/conscript) package manager.
To install conscript, see [installation manual](https://github.com/n8han/conscript#installation).

And execute

```
cs todesking/jcon
```

## USAGE

### Common Options

* `--driver-dir `
* default: `~/.jcon/drivers/`
* `--driver-classes `
* ex: `--driver-classes com.example.specialdb,com.example.superdb.Driver`

### Connect to database

```
jcon [-p|--password ] [-u|--user ]
```

### List all available drivers

```
jcon --drivers
```

## Default bundled drivers

* Mysql
* `jdbc:mysql://host[:port][/database]`
* [Reference](http://dev.mysql.com/doc/connector-j/en/connector-j-reference-configuration-properties.html)
* SQLite
* `jdbc:sqlite:/path/to/file`(file), `jdbc:sqlite::memory`(on-memory database)
* [Reference](https://bitbucket.org/xerial/sqlite-jdbc/wiki/Home)
* H2 Database Engine
* `jdbc:h2:/path/to/file` etc.
* [Reference](http://www.h2database.com/html/features.html#database_url)
* Postgres SQL Database
* `jdbc:postgressql:[//host[:port]/]database`
* [Reference](http://jdbc.postgresql.org/documentation/80/connect.html)

## Not bundled drivers

To use external drivers, put driver jars into jcon's drivers directory(default: `~/.jcon/drivers/`)

* Oracle
* [Download](http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html)
* SQL Server
* [Download](http://www.microsoft.com/ja-jp/download/details.aspx?id=11774)