示例#1
0
 protected function getManager($prefix = null, $conn = true)
 {
     $m = new \SQRT\DB\Manager();
     if ($prefix) {
         $m->setPrefix($prefix);
     }
     if ($conn) {
         $m->addConnection(TEST_HOST, TEST_USER, TEST_PASS, TEST_DB);
     }
     return $m;
 }
示例#2
0
 protected function getManager()
 {
     $m = new \SQRT\DB\Manager();
     $m->addConnection(TEST_HOST, TEST_USER, TEST_PASS, TEST_DB);
     $m->setPrefix('test_');
     return $m;
 }