RedBeanPHP
The Power ORM

Templates

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->setDDLTemplate'createTable''*',  
        
$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.021817922592163s. Is the performance lacking? Please drop me an e-mail to notify me!

 

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

Privacy Statement