lib/PeachySql.php
public function insertRow(string $table, array $colVals): InsertResult
    {
        $result = $this->insertBatch($table, [$colVals]);
        $ids = $result->getIds();
        $id = empty($ids) ? 0 : $ids[0];
        return new InsertResult($id, $result->getAffected());
    }
public function insertRow(string $table, array $colVals): InsertResult
    {
        $result = $this->insertBatch($table, [$colVals]);
        $ids = $result->getIds();
        $id = empty($ids) ? 0 : $ids[0];
        return new InsertResult($id, $result->getAffected());
    }
public function insertRow ( string $ table , array $ colVals ) : InsertResult { $ result = $ this -> insertBatch ( $ table , [ $ colVals ] ) ; $ ids = $ result -> getIds ( ) ; $ id = empty ( $ ids ) ? 0 : $ ids [ 0 ] ; return new InsertResult ( $ id , $ result -> getAffected ( ) ) ; }
Inserts one row
Inserts one row