Skip to content

Conversation

@rafacouto
Copy link
Contributor

This PR allows to use the mysql strategy and set options with the PDO driver.

It was motivated by the need of connecting to a MySQL/MariaDB server with the SSL/TLS option required. If that option is rightly configured in your Laravel's database config this patch uses the database.connections.mysql.options setup transparently.

NinjaMutex master branch is required to pass the options parameter. Last release of arvenil/mutex at this PR moment is 0.6 so that composer dependency is dev-master#82cbb2c (Feb 1, 2021). If a new release of NinjaMutex is published it should be set on this composer.json.

@dmitry-ivanov
Copy link
Owner

Hi @rafacouto,

Thank you for your contribution!

I'll try to take a look at it soon (hopefully this weekend).

@codecov
Copy link

codecov bot commented Jul 11, 2022

Codecov Report

Merging #28 (e2daa2c) into master (be2a704) will not change coverage.
The diff coverage is 100.00%.

@@ Coverage Diff @@ ## master #28 +/- ## =========================================== Coverage 100.00% 100.00% Complexity 23 23 =========================================== Files 2 2 Lines 58 60 +2 =========================================== + Hits 58 60 +2 
Impacted Files Coverage Δ
src/Mutex.php 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update be2a704...e2daa2c. Read the comment docs.

@dmitry-ivanov
Copy link
Owner

Looks good, thanks 👍

@dmitry-ivanov dmitry-ivanov merged commit ec0d1cf into dmitry-ivanov:master Jul 11, 2022
@rafacouto rafacouto deleted the feature/NinjaMutex-MySQLPDOLock branch July 11, 2022 23:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants