Skip to content

Conversation

srjlewis
Copy link
Contributor

@srjlewis srjlewis commented Oct 3, 2024

No description provided.

@harikt
Copy link
Member

harikt commented Oct 4, 2024

This can go to 6.x , else we need to make sure the connect method is not removed or another alternate approach needed .

@harikt harikt changed the base branch from 5.x to 6.x October 4, 2024 07:26
@harikt harikt mentioned this pull request Oct 4, 2024
Copy link
Contributor

@frederikbosch frederikbosch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two discussions points: which versions to support and should the static function connect return an immediate connection?

@@ -100,7 +113,11 @@ public function connect(): void
// connect
$this->profiler->start(__FUNCTION__);
list($dsn, $username, $password, $options, $queries) = $this->args;
$this->pdo = new PDO($dsn, $username, $password, $options);
if(version_compare(phpversion(), '8.4.0', '<')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd remove this check and only support PHP 8.4

?ProfilerInterface $profiler = null
): static {
$pdo = new static($dsn, $username, $password, $options ?? [], $queries, $profiler);
$pdo->establishConnection();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really want to connect immediately when using driver specific constructor? I'd say we always connect lazily.

Copy link
Contributor

@frederikbosch frederikbosch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single discussion left

@frederikbosch
Copy link
Contributor

@harikt and @koriym, move this one in?

@frederikbosch
Copy link
Contributor

Thanks for the effort @srjlewis. I might have advocated my points strongly but I really appreciate the work.

@harikt
Copy link
Member

harikt commented Nov 16, 2024

I am ok with the changes. Thank you guys.

@harikt harikt merged commit 0d02dd3 into auraphp:6.x Nov 16, 2024
1 of 2 checks passed
@srjlewis srjlewis deleted the detached branch January 23, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants