scoumbourdis/grocery-crud — pull request #96 by SeameX (2012-09-16 13:34:28+00:00)
Title: set_database function

I just had the problem that i have two database connections in one controller. I switched the database connection but grocerycrud dont do it aswell. Thats why i added this function.

Works as follows:
$crud->set_database($db_group_before[, $db_group_after]);

db_group_before = Set database group from config/databases.php
db_group_after = Optional (Group: default) otherwise sets the database connection to something after crud actions