public function getRow($sql, $bindings = array()) { $this->sql = $sql; $this->signal('sql_exec', $this); return $this->db->GetRow($sql, $bindings); }
/** * Returns the indexes for type $type. * * @param string $type * * @return array $indexInfo index information */ protected function getIndexes($type) { $table = $this->esc($type, TRUE); $indexes = $this->adapter->get("PRAGMA index_list('{$table}')"); $indexInfoList = array(); foreach ($indexes as $i) { $indexInfoList[$i['name']] = $this->adapter->getRow("PRAGMA index_info('{$i['name']}') "); $indexInfoList[$i['name']]['unique'] = $i['unique']; } return $indexInfoList; }