$db = \Database_Connection::instance('myowndb'); // where 'myowndb' is a section in your database config
// pass a specific database object $result = \DB::select()->from('users')->where('id', 1)->execute($db); // or use the name and have it be created on the fly $result = \DB::select()->from('users')->where('id', 1)->execute('myowndb');
It looks like you're new here. If you want to get involved, click one of these buttons!