MySQL Workbench Schema Exporter for Sencha ExtJS3 and ExtJS4

v3.2.0 2023-03-06 18:06 UTC

This package is auto-updated.

Last update: 2023-03-06 18:06:51 UTC


README

Build Status Latest Stable Version Total Downloads License

This is an exporter to convert MySQL Workbench Models (*.mwb) to a Sencha ExtJS3 and ExtJS4 Schema.

Prerequisites

  • PHP 7.2+
  • Composer to install the dependencies

Installation

php composer.phar require --dev mysql-workbench-schema-exporter/sencha-exporter

This will install the exporter and also require mysql-workbench-schema-exporter.

You then can invoke the CLI script using vendor/bin/mysql-workbench-schema-export.

Formatter Setup Options

Additionally to the common options of mysql-workbench-schema-exporter these options are supported:

ExtJS3 Model

Setup Options

  • classPrefix

    Class prefix for generated object.

    Default is SysX.App.

  • parentClass

    Ancestor object, the class to extend for generated javascript object.

    Default is SysX.Ui.App.

ExtJS4 Model

Setup Options

  • classPrefix

    Class prefix for generated object.

    Default is App.model.

  • parentClass

    Ancestor object, the class to extend for generated javascript object.

    Default is Ext.data.Model.

  • generateValidation

    Generate columns validation.

    Default is true.

  • generateProxy

    Generate ajax proxy.

    Default is true.

  • addIdProperty

    Add the primary key of a table as the model's idProperty. (Reference)

    Default is false.

Command Line Interface (CLI)

See documentation for mysql-workbench-schema-exporter

Links