mysql-workbench-schema-exporter / sencha-exporter
MySQL Workbench Schema Exporter for Sencha ExtJS3 and ExtJS4
Requires
- php: >=7.2
- mysql-workbench-schema-exporter/mysql-workbench-schema-exporter: ^3.2
README
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