Giter Club home page Giter Club logo

dbmanagr's Introduction

Database Managr

Latest PyPI version Number of PyPI downloads Build Status Coverage Status

Allows you to explore, visualise, and export your database recursively. Additionally allows to explore the database using the Powerpack of Alfred 2.0.

Database Grapher Example

Main Features

  • Database Navigation
  • Database Visualisation
  • Database Export
  • Database Execution
  • Database Diff
  • Supported databases: PostgreSQL, MySQL, SQLite
  • Use database connection definitions from
    • the ~/.pgpass configuration file (PGAdmin)
    • the ~/.mypass configuration file (like ~/.pgpass)
    • the ~/.dbexplorer/dbexplorer.cfg configuration file (DBExplorer)
    • the Navicat configuration file (SQLite)

Database Navigation

Documentation: Navigator wiki page

Database Navigator Example

Features

  • Shows databases of configured connections
  • Shows tables of databases
  • Shows columns of tables for restricting rows
  • Shows rows of tables with multiple restrictions (operators: =, !=, >, <, >=, <=, like, in)
  • Shows detailed row information
  • Shows info of foreign table row (based on the foreign key)
  • Switch to the foreign table row (forward references)
  • Shows foreign keys that point to the current table row (back references)
  • Configuration of what is shown based on table comments (currently PostgreSQL only)

Database Visualisation

Visualises the dependencies of a table using its foreign key references (forward and back references).

Documentation: Grapher wiki page

Database Grapher Example

Features

  • Optionally display columns as well as references
  • Highlights primary keys (*) and optional columns (?)
  • Optionally include or exclude columns/dependencies from the graph
  • Optionally enable recursive inclusion (outputs each table only once, so cycles are not an issue)
  • Ouput formats include hierarchical text and a Graphviz directed graph
  • Uses the same configuration and URI patterns as the Database Navigator

Database Exporter

Exports specific rows from the database along with their references rows from other tables.

Documentation: Exporter wiki page

Database Exporter Example

Features

  • Exports the rows matching the given URI as SQL insert statements
  • Allows inclusion of referenced tables (forward and back references)
  • Allows exclusion of specific columns (useful if columns are optional, or cyclic references exist)
  • Takes into account the ordering of the statements (when table A references table B, then the referenced row from B must be inserted first)
  • Limits the number of returned rows of the main query (does not limit referenced rows)

Database Executer

Executes the SQL statements from the given file on the database specified by the given URI.

Documentation: Executer wiki page

Database Executer Example

Database Differ

A diff tool that compares the structure of two database tables with each other.

Documentation: Differ wiki page

Database Differ Example

Installation

Installing using PIP also upgrades to the latest version:

sudo pip install --upgrade git+https://github.com/resamsel/dbmanagr.git#egg=dbnav

You might want to install database drivers for PostgreSQL and MySQL as well:

sudo pip install pg8000 pymysql

More information and installation options can be found on the Installation wiki page.

Configuration

Configuration of connections is described in the Connection Configuration wiki page.

Configuration of content is described in the Content Configuration wiki page.

Development

More information can be found on the Development wiki page.

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.