getSchemaGrammar() public method

Get the schema grammar used by the connection.
public getSchemaGrammar ( ) : Illuminate\Database\Schema\Grammars\Grammar
return Illuminate\Database\Schema\Grammars\Grammar
Ejemplo n.º 1
0
 public function __construct(\Illuminate\Database\Connection $connection)
 {
     if (!$connection->getSchemaGrammar()) {
         $connection->useDefaultGrammar();
     }
     parent::__construct($connection);
 }
Ejemplo n.º 2
0
 /**
  * @param Connection $connection
  */
 public function __construct(Connection $connection)
 {
     $this->connection = $connection;
     $this->grammar = $connection->getSchemaGrammar();
     $this->helper = new OracleAutoIncrementHelper($connection);
     $this->comment = new Comment($connection);
 }
Ejemplo n.º 3
0
 /**
  * Create a new database Schema manager.
  *
  * @param  \Illuminate\Database\Connection  $connection
  * @return void
  */
 public function __construct(Connection $connection)
 {
     $this->connection = $connection;
     $this->grammar = $connection->getSchemaGrammar();
 }
 public function __construct(Connection $connection, ParameterBag $param)
 {
     $this->param = $param;
     $this->connection = $connection;
     $this->schema = $connection->getSchemaGrammar();
 }
Ejemplo n.º 5
0
 /**
  * Preparar Migration.
  */
 public function __construct()
 {
     $this->con = app('db')->connection($this->getConnection());
     $this->builder = $this->con->getSchemaBuilder();
     $this->grammar = $this->con->getSchemaGrammar();
 }
Ejemplo n.º 6
0
 /**
  * Get the schema grammar out of a migration connection.
  *
  * @param  \Illuminate\Database\Connection  $connection
  * @return \Illuminate\Database\Schema\Grammars\Grammar
  */
 protected function getSchemaGrammar($connection)
 {
     if (is_null($grammar = $connection->getSchemaGrammar())) {
         $connection->useDefaultSchemaGrammar();
         $grammar = $connection->getSchemaGrammar();
     }
     return $grammar;
 }