nativeQuery() final public method

Executes the SQL query.
final public nativeQuery ( $sql ) : Result | integer
return Result | integer result set object (if any)
コード例 #1
0
ファイル: DefaultMigration.php プロジェクト: joseki/migration
 protected function query($sql)
 {
     if (!is_array($sql)) {
         $sql = [$sql];
     }
     foreach ($sql as $query) {
         $this->dibiConnection->nativeQuery($query);
     }
 }
コード例 #2
0
ファイル: Dibi3Adapter.php プロジェクト: nextras/migrations
 public function exec($sql)
 {
     return $this->conn->nativeQuery($sql);
 }