コード例 #1
0
ファイル: Adapter.class.php プロジェクト: pthreat/apf-dev
 protected function __listTables($cache = TRUE)
 {
     if ($cache && sizeof($this->tables)) {
         return $this->tables;
     }
     $select = new Select('information_schema.TABLES');
     $select->where(array(array('field' => 'TABLE_SCHEMA', 'value' => $this->params['name'])));
     return $this->tables = $select->execute('\\apf\\db\\mysql5\\Table', $smart = FALSE);
 }
コード例 #2
0
ファイル: SelectSQLiteTest.php プロジェクト: venar/select
 public function testExecute()
 {
     $select = new Select(self::TABLES_QUERY, 'SELECT', self::$sqliteConn);
     $result = $select->execute();
     return $result;
 }