Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Interactive reader for PowerDesigner PDM files

Project description

PDM reader

Interactive reader for PowerDesigner PDM files.

Features:

  • View/search tables
  • Vew table definition
  • Generate DDL for various databases (currently MySQL and Oracle supported)
  • Generate Java entity definition
  • Support command history

Requirement

  • Python 3.7+

This tool only makes use of Python standard libraries.

Installation

# root or administrator permission may be required
pip install pdmreader

If you want to try some unreleased features, or customize the tool yourself, clone the repository and install it in development mode:

git clone https://github.com/bianjp/pdmreader.git
cd pdmreader
# root or administrator permission may be required 
python setup.py development

Usage

pdmreader PATH_TO_PDM_FILE

This will start an interactive "shell" which you can type commands.

Type help to show available commands.

Currently supported commands:

COMMAND                       DESCRIPTION
--------------------------------------------------------------------------------
help                          Print help
t                             Toggle horizontal/vertical output. Default horizontal
tables                        Show tables
tables PATTERN                Show tables matching the given shell-style glob
seq                           Show sequences
seq PATTERN                   Show sequences matching the given shell-style glob
table TABLE                   Show definitions of the given table
mysql TABLE                   Generate MySQL DDL for creating the given table
oracle TABLE                  Generate Oracle DDL for creating the given table
java TABLE                    Generate Java entity definition for the given table
exit, Ctrl + D                Exit

License

This project is licensed under the terms of the MIT license.

Project details


Release history Release notifications

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pdmreader, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size pdmreader-0.1-py3-none-any.whl (13.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size pdmreader-0.1.tar.gz (11.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page