public function insert(string $table, array $e): \PDOStatement
    {
        if (sizeof($e) == 0) {
            trigger_error('array passed in Connection::insert(...) is empty.', E_ERROR);
        }

        $query = "INSERT INTO $table (";
        $values = '';
        foreach ($e as $campo => $v) {
            $query .= $campo . ',';
            $values .= '\'' . $this->escape($v) . '\',';
        }
        $query[strlen($query) - 1] = ')';
        $values[strlen($values) - 1] = ')';
        $query .= ' VALUES (' . $values . ';';

        self::$id = parent::lastInsertId($table);

        return $this->query($query);
    }