Giter Club home page Giter Club logo

dbconn's Introduction

DBConn

DBConn is a Java command-line application for working with any JDBC-compliant database.

Here is the list of supported commands:

  • cat
  • check database
  • close database
  • connect [ []]
  • connections
  • count rows <table>
  • count tables
  • dbinfo
  • debug
  • debug off
  • debug on
  • describe table
  • dir [<path>]
  • export data <table name> [<where-clause>]
  • export schema <filename>
  • gc
  • head <file>
  • help
  • help
  • jar
  • list schemas
  • list tables
  • mem
  • quit
  • select connection
  • time
  • time <command>
  • version

Most of these commands require a database connection. To connect to a database, use the 'connect' command. For example:

    connect jdbc:postgresql://localhost/test srogers passw0rd

The above command will connect to the test database on localhost as the srogers user. The PostgreSQL JAR file needs to be in the classpath.

The 'export schema tables.xml' command is used to produce an XML file describing tables in the schema. This is used by the SchemaBrowser application described elsewhere on this site.

DBConn uses the JLine2 library for command-line history.

To build the application, use Ant to run 'ant clean dist'. To execute the application, you'll need the JDBC library for your database. Execute via 'java -cp dbconn.jar:XYZ.jar io.miti.dbconn.app.DBConn', where XYZ.jar is your JDBC library.

The source code is released under the MIT license.

dbconn's People

Contributors

argonium avatar mwallace-eab avatar

Watchers

James Cloos avatar  avatar

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.