/** * Disable foreign key constraints. * * @return bool */ public function disableForeignKeyConstraints() { return $this->connection->statement($this->grammar->compileDisableForeignKeyConstraints()); }
/** * Wrap a single string in keyword identifiers. * * @param string $value * @return string */ protected function wrapValue($value) { if ($this->isReserved($value)) { return parent::wrapValue($value); } return $value !== '*' ? sprintf($this->wrapper, $value) : $value; }
/** * Get the column listing for a given table. * * @param string $table * @return array */ public function getColumnListing($table) { $table = $this->connection->getTablePrefix() . $table; $results = $this->connection->select($this->grammar->compileColumnExists($table)); return $this->connection->getPostProcessor()->processColumnListing($results); }
/** * Wrap reserved words. * * @param string $value * @return string */ protected function wrapValue($value) { return $this->isReserved($value) ? parent::wrapValue($value) : $value; }
/** * Wrap a single string in keyword identifiers. * * @param string $value * @return string */ protected function wrapValue($value) { if (Config::get('oracledb::database.quoting') === true) { return parent::wrapValue($value); } return $value; }
/** * Determine if the given table exists. * * @param string $table * @return bool */ public function hasTable($table) { $sql = $this->grammar->compileTableExists(); $table = $this->connection->getTablePrefix() . $table; return count($this->connection->select($sql, array($table))) > 0; }