We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 499ad05 commit 4a3cf57Copy full SHA for 4a3cf57
src/Driver/Pdo/PdoMysqlConnection.php
@@ -27,8 +27,15 @@ public static function getParameters(array $options): array
27
$options['driverOptions'][\PDO::MYSQL_ATTR_INIT_COMMAND] = 'SET NAMES utf8';
28
}
29
30
- $options['driverOptions'][\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY] = false;
31
-
32
return $options;
33
+
+ public function disableBufferedQuery(bool $buffered = true): static
34
+ {
35
+ $pdo = $this->get();
36
37
+ $pdo?->setAttribute(\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, !$buffered);
38
39
+ return $this;
40
+ }
41
0 commit comments