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
Donate to RedBeanPHP using Monero:
47mmY3AVbRu 7zVVd4bxQnzD
2jR7PQtBJ cF93jWHQ
rP7yRED4qr fqu6G9Q8ZNu7
zqwnB28rz76 w7MaExf
mALVg69yFd 9sUmz
(remove spaces and new lines)
Performance monitor: this page has been generated in 0.021588087081909s.
Is the performance lacking? Please drop me an e-mail to notify me!
RedBeanPHP Easy ORM for PHP © 2024 Gabor de Mooij
() and the RedBeanPHP community
(credits) - Licensed New BSD/GPLv2 -
RedBeanPHP Archives
RedBeanPHP, the power ORM for PHP since 2009.
Privacy Statement