GithubHelp home page GithubHelp logo

schema-browser's Introduction

SchemaBrowser

SchemaBrowser is a Java GUI (Swing) application that makes it easy to quickly browse the structure of tables from a database schema. Users can search either by table name or column name (see the columns in a table, or the tables that reference a column by name).

Schema Browser

The application uses a snapshot of a schema, so no connection is required to the database when SchemaBrowser is running. To produce a snapshot, use the DBConn application (described in its own repository) to connect to a database, run the 'export schema tables.xml' command, and then copy tables.xml to the data/ directory in SchemaBrowser before building the application.

To build the application, use Ant to run 'ant clean dist'. This will produce schema.jar. To run the application, use 'java -jar schema.jar', or double-click the JAR file from the desktop.

Right-clicking on a table or column name on the left-hand side gives you six options:

  1. Copy this table
  2. Copy selected tables
  3. Copy all tables
  4. Copy this table and metadata
  5. Copy selected tables and metadata
  6. Copy all tables and metadata

If you've selected a column, the options will contain 'column' instead of 'table'.

Selecting one of these options will copy the table / column (and optionally the list of columns in the table, or the tables containing the column) to the clipboard. If you hold down the SHIFT key while selecting the option, the output is in Markdown format.

Sample output:

ACTORS
#   Column       Column Type   Can Be Null?   Primary Key?
1   ACTOR_ID     serial(10)    No             Yes
2   ACTOR_NAME   varchar(64)   No             No
3   ROLE_TYPE    varchar(64)   Yes            No
4   MEMBER_ID    int4(10)      Yes            No
5   LAST_ROLE    timestamp     Yes            No

The source code is released under the MIT license.

schema-browser's People

Contributors

argonium avatar mikeindi avatar mwallace-eab avatar

Watchers

 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.