This is an outdated version of the Manual. Visit the NEW Manual

Multiple databases

There are two important methods to keep in mind when working with multiple databases. To add a new database connection use R::addDatabase()


To select a database, use the key you have previously specified:


If you used R::setup() to connect to your database you can switch back to this database using:



RedBeanPHP Easy ORM for PHP © 2019 Gabor de Mooij and the RedBeanPHP community - Licensed New BSD/GPLv2