The Power ORM


As of RedBeanPHP 5.6 you can use data definition language templates to make sure RedBeanPHP constructs its tables according to your specifications. For instance, if you want to construct your MySQL tables using the option ROW_FORMAT=DYNAMIC you can alter the DDL template for table creation like this:

$writer->getDDLTemplate('createTable''*') . ' ROW_FORMAT=DYNAMIC '

Currently, RedBeanPHP supports overriding the following DDL templates: 'createTable' (used by RedBeanPHP for table creation), 'addColumn' (used by RedBeanPHP to add a new column to a table on-the-fly) and 'widenColumn' (used by RedBeanPHP to adjust the column to hold a different kind of data).

back to main menu

Performance monitor: this page has been generated in 0.015666961669922s. Is the performance lacking? Please drop me an e-mail to notify me!

Partners PapelDigital


RedBeanPHP Easy ORM for PHP © 2022 () and the RedBeanPHP community () - Licensed New BSD/GPLv2 - RedBeanPHP Archives
RedBeanPHP, the power ORM for PHP since 2009.

Privacy Statement