src/zozlak/util/SqlCopy.php
public function insertRow($row): void {
        if ($this->connection === null) {
            throw new \RuntimeException('Copying already ended. Create a new object');
        }
        if (is_array($row)) {
            $row = $this->escape($row);
        }
        $wynik = @pg_put_line($this->connection, $row);
        if ($wynik === false) {
            throw new \RuntimeException('Failed to insert the row');
        }
    }
public function insertRow($row): void {
        if ($this->connection === null) {
            throw new \RuntimeException('Copying already ended. Create a new object');
        }
        if (is_array($row)) {
            $row = $this->escape($row);
        }
        $wynik = @pg_put_line($this->connection, $row);
        if ($wynik === false) {
            throw new \RuntimeException('Failed to insert the row');
        }
    }
public function insertRow ( $ row ) : void { if ( $ this -> connection === null ) { throw new \ RuntimeException ( 'Copying already ended. Create a new object' ) ; } if ( is_array ( $ row ) ) { $ row = $ this -> escape ( $ row ) ; } $ wynik = @ pg_put_line ( $ this -> connection , $ row ) ; if ( $ wynik === false ) { throw new \ RuntimeException ( 'Failed to insert the row' ) ; } }
Ingests a row of data.
@param type $row row to be ingested into the database (an array or an
already properly escaped input row)
@return void
@throws \RuntimeException
Ingests a row of data .