public function row(array $data): int
    {
        array_push($this->rows, $data);
        $pdoStatement = $this->provideStatement();
        $this->execute($pdoStatement);
        return $this->getLastInsertId();
    }
public function row(array $data): int
    {
        array_push($this->rows, $data);
        $pdoStatement = $this->provideStatement();
        $this->execute($pdoStatement);
        return $this->getLastInsertId();
    }
public function row ( array $ data ) : int { array_push ( $ this -> rows , $ data ) ; $ pdoStatement = $ this -> provideStatement ( ) ; $ this -> execute ( $ pdoStatement ) ; return $ this -> getLastInsertId ( ) ; }
Inserts new row into database and returns insert-id.

@param array $data
@return int
@throws \Bloatless\Endocore\Components\Database\Exception\DatabaseException
Inserts new row into database and returns insert - id .