Browse Source

Update mixphp db options (#6808)

* feat: add mixphp

* update /fortunes views and mixphp-workerman.dockerfile

* Add bin/*.php

* update dockerfile

* update mixphp-workerman.dockerfile

* Add mixphp-workerman-pgsql

* update views/fortunes.php

* update fortunes()

* update conn pool $maxOpen

* orm switch to object

* update orm switch to object

* Remove useless code

* debug build docker

* build dockerfile remove > /dev/null

* handle false & update routes

* Add 500 handle, close swoole coroutine

* Update dockerfile

* Update dockerfile

* Update dockerfile

* Update dockerfile

* Update dockerfile

* Update dockerfile

* Update readme

* Enable swoole coroutine

* disable swoole coroutine

* enable swoole coroutine

* Update pool

* disable swoole coroutine

* Update ubuntu version

* Update composer install

* Remove workerman-mysql json_url plaintext_url

* Update start params

* Add phpfpm

* Add phpfpm

* Add phpfpm

* Update mixphp.dockerfile

* Update mixphp.dockerfile

* Update mixphp.dockerfile

* Update dockerfile

* Update swoole.php

* Update db options

* Update db options
LIU JIAN 3 years ago
parent
commit
af32d19d80
1 changed files with 1 additions and 1 deletions
  1. 1 1
      frameworks/PHP/mixphp/src/Container/DB.php

+ 1 - 1
frameworks/PHP/mixphp/src/Container/DB.php

@@ -22,8 +22,8 @@ class DB
             $username = 'benchmarkdbuser';
             $password = 'benchmarkdbpass';
             $db = new Database($dsn, $username, $password, [
-                \PDO::ATTR_EMULATE_PREPARES => false,
                 \PDO::ATTR_DEFAULT_FETCH_MODE => \PDO::FETCH_OBJ,
+                \PDO::ATTR_PERSISTENT => true,
             ]);
             self::$instance = $db;
         }