Пример #1
0
 /**
  * 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;
 }
Пример #3
0
 /**
  * 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);
 }
Пример #4
0
 /**
  * Wrap reserved words.
  *
  * @param string $value
  * @return string
  */
 protected function wrapValue($value)
 {
     return $this->isReserved($value) ? parent::wrapValue($value) : $value;
 }
Пример #5
0
 /**
  * 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;
 }
Пример #6
0
 /**
  * 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;
 }