當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Connection::getSchemaGrammar方法代碼示例

本文整理匯總了PHP中Illuminate\Database\Connection::getSchemaGrammar方法的典型用法代碼示例。如果您正苦於以下問題:PHP Connection::getSchemaGrammar方法的具體用法?PHP Connection::getSchemaGrammar怎麽用?PHP Connection::getSchemaGrammar使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Illuminate\Database\Connection的用法示例。


在下文中一共展示了Connection::getSchemaGrammar方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct(\Illuminate\Database\Connection $connection)
 {
     if (!$connection->getSchemaGrammar()) {
         $connection->useDefaultGrammar();
     }
     parent::__construct($connection);
 }
開發者ID:offworks,項目名稱:laraquent,代碼行數:7,代碼來源:Schema.php

示例2: __construct

 /**
  * @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);
 }
開發者ID:bryan-mwas,項目名稱:Clearance101,代碼行數:10,代碼來源:OracleBuilder.php

示例3: __construct

 /**
  * 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();
 }
開發者ID:davidhemphill,項目名稱:framework,代碼行數:11,代碼來源:Builder.php

示例4: __construct

 public function __construct(Connection $connection, ParameterBag $param)
 {
     $this->param = $param;
     $this->connection = $connection;
     $this->schema = $connection->getSchemaGrammar();
 }
開發者ID:xsanisty,項目名稱:SilexStarter-Datatable,代碼行數:6,代碼來源:DatatableResponseBuilder.php

示例5: __construct

 /**
  * Preparar Migration.
  */
 public function __construct()
 {
     $this->con = app('db')->connection($this->getConnection());
     $this->builder = $this->con->getSchemaBuilder();
     $this->grammar = $this->con->getSchemaGrammar();
 }
開發者ID:bugotech,項目名稱:database,代碼行數:9,代碼來源:Migration.php

示例6: getSchemaGrammar

 /**
  * 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;
 }
開發者ID:bryanashley,項目名稱:framework,代碼行數:14,代碼來源:Migrator.php


注:本文中的Illuminate\Database\Connection::getSchemaGrammar方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。