nativeQuery() final public method

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