for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php namespace Bosnadev\Database;
use Illuminate\Database\PostgresConnection as BasePostgresConnection;
/**
* Class PostgresConnection
*
* @package Bosnadev\Database
*/
class PostgresConnection extends BasePostgresConnection
{
* Get a schema builder instance for the connection.
* @return Schema\Builder
public function getSchemaBuilder()
if (is_null($this->schemaGrammar)) {
$this->useDefaultSchemaGrammar();
}
return new Schema\Builder($this);
* Get the default query grammar instance.
* @return \Illuminate\Database\Grammar
protected function getDefaultQueryGrammar()
return $this->withTablePrefix(new Query\Grammars\PostgresGrammar);
* Get the default schema grammar instance.
protected function getDefaultSchemaGrammar()
return $this->withTablePrefix(new Schema\Grammars\PostgresGrammar);
* Get the default post processor instance.
* @return \Illuminate\Database\Query\Processors\PostgresProcessor
protected function getDefaultPostProcessor()
return new \Illuminate\Database\Query\Processors\PostgresProcessor;