Download the PHP package coppolafab/micro-laravel-mysql-driver without Composer
On this page you can find all versions of the php package coppolafab/micro-laravel-mysql-driver. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download coppolafab/micro-laravel-mysql-driver
More information about coppolafab/micro-laravel-mysql-driver
Files in coppolafab/micro-laravel-mysql-driver
Download coppolafab/micro-laravel-mysql-driver
More information about coppolafab/micro-laravel-mysql-driver
Files in coppolafab/micro-laravel-mysql-driver
Vendor coppolafab
Package micro-laravel-mysql-driver
Short Description A minimal extension of Laravel default behaviour to minimize interactions after connection towards a MySql Server
License ISC
Homepage https://github.com/coppolafab/micro-laravel-mysql-driver
Package micro-laravel-mysql-driver
Short Description A minimal extension of Laravel default behaviour to minimize interactions after connection towards a MySql Server
License ISC
Homepage https://github.com/coppolafab/micro-laravel-mysql-driver
Please rate this library. Is it a good library?
Informations about the package micro-laravel-mysql-driver
What is this?
A minimal extension of Laravel default behaviour to minimize interactions after connection towards a MySql Server. Compatible with Laravel 5.7+, 6.x and 7.x .
Why?
- statement affects only the server, causing possible differences on operations that involve charsets, especially while enabling prepared statement emulation.
Setting connection charset via PDO DSN, instead, affect both client and server. - Declaring the connection database into PDO DSN, allow to automatically select the db, without execute more statements.
Also, some Connections Proxies do not allow execution of statement. - statement could be necessary if you need to specify a collation different from the server default for the specified charset. If you can stick with the default (ie. for utf8mb4, is utf8mb4_general_ci on MySQL 5.7 and utf8mb4_0900_ai_ci on MySQL 8.0), you should unset .
- Such configuration statements, can cause connection pinning on Proxies.
- When using Cluster with read-only Replicas, any script execution that also writes to the DB, handles 2 connections. If using stickiness, the read-only handle is unused and unnecessary occupying a MySQL thread.
MySQL general log output with default driver and config:
MySQL general log output with micro driver:
This result can be obtained with all , and set to .
What are the differences?
- Set charset into PDO DSN.
- Do not execute the statement, read from PDO DSN.
- Do not execute unless you provide an explicit .
- When using Cluster with read-only Replicas, and is true, close immediately the read-only connection after the switch to the read-write instance.
How to use
- Run
-
Add database config options to the mysql section:
- Enable new config options via .env file:
All versions of micro-laravel-mysql-driver with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.2
ext-pdo Version *
illuminate/support Version ^5.7|^6.0|^7.0|^8.0
illuminate/database Version ^5.7|^6.0|^7.0|^8.0
ext-pdo Version *
illuminate/support Version ^5.7|^6.0|^7.0|^8.0
illuminate/database Version ^5.7|^6.0|^7.0|^8.0
The package coppolafab/micro-laravel-mysql-driver contains the following files
Loading the files please wait ...