Пример #1
0
 /**
  * @return \Rapid\Db
  */
 protected function db()
 {
     if (!$this->db) {
         $connectionName = $this->connectionName ? $this->connectionName : 'default';
         $this->db = \Rapid\Db::get($connectionName);
     }
     return $this->db;
 }
Пример #2
0
 protected function dropTestTable()
 {
     $db = \Rapid\Db::get();
     $db->query('DROP TABLE my_table');
 }