dsn = $dsn; $this->username = $username; $this->passwd = $passwd; $this->options = $options; $this->pdo = new PDONative($dsn, $username, $passwd, $options); } public function setAttribute($attribute, $value) { return $this->pdo->setAttribute($attribute, $value); } public function prepare($statement, array $driver_options = []) { return new PDOStatement($this, $this->pdo->prepare($statement, $driver_options)); } public function quote($string, $parameter_type = PDONative::PARAM_STR) { return $this->pdo->quote($string, $parameter_type); } public function reconnect() { return $this->pdo = new PDONative($this->dsn, $this->username, $this->passwd, $this->options); } }