nativeQuery() final public méthode

Executes the SQL query.
final public nativeQuery ( $sql ) : Result | integer
Résultat Result | integer result set object (if any)
 protected function query($sql)
 {
     if (!is_array($sql)) {
         $sql = [$sql];
     }
     foreach ($sql as $query) {
         $this->dibiConnection->nativeQuery($query);
     }
 }
Exemple #2
0
 public function exec($sql)
 {
     return $this->conn->nativeQuery($sql);
 }