Skip to content

Commit

Permalink
feat: change persistent connection env
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanakl committed Dec 12, 2023
1 parent de07995 commit fe5d97e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/Database/DataBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function __construct()
private function options(): array
{
$options = [
PDO::ATTR_PERSISTENT => true,
PDO::ATTR_PERSISTENT => env('PDO_ATTR_PERSISTENT', 'true') == 'true',
PDO::ATTR_CASE => PDO::CASE_NATURAL,
PDO::ATTR_STRINGIFY_FETCHES => false,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
Expand Down

0 comments on commit fe5d97e

Please sign in to comment.