Skip to content

themouette/PropelUtility

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

What is PropelUtility ?

  • PropelUtility can create and export to xml format a Propel schema from an existant MySQLWorkbench shcema (*.mwb file)
  • PropelUtility can manage all Propel's schema elements unsupported by MySQLWorkbench
  • PropelUtility is delivered as Python MySQLWorkbench plugin. in this it can be installed on Windows, Linux and Mac OS Platform

What PropelUtility is not ...

  • PropelUtility can't manage any schema's data which is manageable with MySQLWorkbench
  • PropelUtility can't convert Propel schema to YAML format (use symfony propel:schema-to-yml instead)

PropelUtility

Installation

via the command line

git clone git://github.com/mazenovi/PropelUtility.git

or unzip the downloaded archive downloaded " from PropelUtility's github page

Copy the full project (i.e. propel_utility_grt.py and PropelUtility folder) in a MySQLWorkbench's "modules" folder.

It can be in MySQLWorkbench's installation folder, with a path like this:

  • C:\Program Files\mysql-workbench\modules
  • ou /usr/lib/mysql-workbench/modules for linux

or better a user folder, with a path like this:

  • C:\Users\username\AppData\Roaming\MySQL\Workbench\modules
  • /home/username/.mysql/workbench/modules for linux

After you copied those files go to "Scripting" -> "Install Plugin / Module ..." browse to the file propel_utility_grt.py you just copied, select it, and restart MySQLWorkbench.

PropelUtility add two new entries to MySQLWorkbench in "Plugins" -> "Catalog" :

  • "Propel Utility"
  • "Propel Erase All Data"

N.B. It's not exactly the way to install a plugin. As PropelUtility is split in several files, you have to copy all project's files in the "modules" folder by hand, before installation in MySQLWrokbench.

usage

Any changes on the Propel data with Propel Utility will be validated after a click on the "OK" Button.

If "CANCEL" is clicked, changes will be lost.

To definitely save the Propel data, you should remember to save the .mwb file

There are 3 type fields:

  • the non-editable fields : they are for information only, MySQLworkbench can edit them but not PropelUtility
  • the editable fields : on click on those fields make them editable and you can change their value with a keyboard input
  • the editable fields with choices list : on click on those fields make them editable and you can change their value with a keyboard input, and a double click will show a list with all possible choices. Just select an item and click the "select this value" button N.B. it seems that the choices are unavailable on linux.

tabs

customization

You can choose, order, resize evry fields by editing the "fields_list" list in associated tab class (for example PropelTabDatabase.py for Database tab)

You can add your own behaviors by adding new items to PropelBehavior.behaviors and PropelBehavior.fields['name']['items'] lists

Propel Erase all data

This entry can erase all Propel data managed by PropelUtility and only this data (MySQLWorkbench data will not be affected)

TODO

  • add an individual export box for each indice ( or )
  • add "single inheritance" support
  • add a "Settings" tab to choose which column are showing or not in each tab
  • add an "Import" tab to create MySQLWorkbench schema (*.mwb file) from an existing Propel schema.xml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%