This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

MySQL Workbench Schema Exporter for Sencha ExtJS3 and ExtJS4

v3.1.1 2020-07-19 14:19 UTC

This package is auto-updated.

Last update: 2021-05-22 08:47:00 UTC


README

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

Prerequisites

  • PHP 5.4+
  • 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