Note: For windows user: this script uses ANSI codes for coloring the console
output. If you whish to display the colors on windows you need to pipe this
command to a post process utility (google is your friend to find one) or use
cygwin.
Note: For linux users: instead of using "php main.php" you can also make the
file db2class executable with:
chmod u+x db2class
After this you can launch the script with:
./db2class
By example to get help from the MySQL5 module
./db2class MySQL5 --help
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Application allowing automatic generation of php classes for database tables
and views.
Usage:
* Getting help
* Getting help for a specific module (such as MySQL5)
* Previewing generated code for the mysql.user and mysql.ssessions tables
* Generating code for all the tables in the mysql database
Note: For windows user: this script uses ANSI codes for coloring the console
output. If you whish to display the colors on windows you need to pipe this
command to a post process utility (google is your friend to find one) or use
cygwin.
Note: For linux users: instead of using "php main.php" you can also make the
file db2class executable with:
After this you can launch the script with:
By example to get help from the MySQL5 module
missing files….
require_once( 'Config.php' );
require_once( 'Console/CommandLine.php' );