yiisoft / yiisoft/db

Need more environment for retry handler

Open
#1,130 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

type:enhancement
Dominant language
PHP
Stars
216
Forks
51
Avg merge
3d 10h
Merged PRs (30d)
2

Description

Needs to pass current connection $this->db to have possibility to restart it.

https://github.com/yiisoft/db/blob/f1074b91291e415b34059b85177a3e76c2bdd144/src/Driver/Pdo/AbstractPdoCommand.php#L210

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/Driver/Pdo/AbstractPdoCommand.php around line 210, the linked retry-handler entry point. Trace how the handler is called and determine where the current connection ($this->db) must be passed. Done means the retry handler receives that connection and can use it to restart the connection; no test file is named in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
database
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.