• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mpyw / laravel-database-advisory-lock
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: v4.4.2
DEFAULT BRANCH: master
Repo Added 12 Jul 2022 03:59PM UTC
Files 28
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH v4.4.2
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • bump-version
  • claude/mariadb-driver-support
  • claude/php-8.5-support
  • dev
  • fix/postgres-finite-timeout
  • improve-pg-timeout
  • master
  • test/mariadb
  • timeout-float-value
  • v1.0.0
  • v2.0.0
  • v2.1.0
  • v2.1.1
  • v3.0.0
  • v3.0.1
  • v3.0.2
  • v4.0.0
  • v4.0.1
  • v4.1.0
  • v4.2.0
  • v4.2.1
  • v4.2.2
  • v4.2.3
  • v4.3.0
  • v4.3.1
  • v4.4.0
  • v4.4.1
  • v4.4.2
  • wip

13 Jun 2026 03:54AM UTC coverage: 100.0%. Remained the same
27455807458

push

github

web-flow
[Claude] Support the dedicated `mariadb` driver (closes #15) (#16)

* Support the dedicated `mariadb` driver (closes #15)

Laravel 11 introduced a dedicated `Illuminate\Database\MariaDbConnection`
(extending `MySqlConnection`) used whenever the connection driver is
`mariadb`. Because this package only registered resolvers for `mysql`
and `pgsql`, a connection configured with `'driver' => 'mariadb'` was
resolved to Laravel's own `MariaDbConnection` *without* the
`AdvisoryLocks` trait, so `advisoryLocker()` was unavailable there.

- Add `Connections\MariaDbConnection` (extends the base + uses the trait)
- Register a `mariadb` resolver in `ConnectionServiceProvider`
  - `LockerFactory` already routes it correctly via
    `instanceof MySqlConnection` (the base MariaDbConnection extends it)
- Tests: make the `mariadb` connection actually use `'driver' => 'mariadb'`
  (it previously inherited the `mysql` driver), so the whole mariadb test
  matrix now exercises the new class end-to-end

Also, while here:
- Fix a real null-safety issue flagged by PHPStan in PostgresSessionLock:
  `Connection::getEventDispatcher()` returns `Dispatcher|null`, but
  `TransactionEventHub::initializeWithDispatcher()` requires a non-null
  `Dispatcher`. Guard against a missing dispatcher.
- README: document that a transaction-level advisory lock is bound to the
  top-level transaction. With Laravel's savepoint-based nested
  transactions, committing a nested transaction does NOT release a lock
  acquired inside it (it is promoted to the enclosing transaction and held
  until the outermost one ends); only a rollback to the savepoint releases
  it early. Reliable, but it may be held longer than intended — a tradeoff
  vs session-level locks. Verified against Postgres and cited to the docs.
- Widen the supported Laravel range to `^13.0` (already in composer.json,
  was missing from the README) and proactively allow `^14.0`.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthr... (continued)

3 of 3 new or added lines in 2 files covered. (100.0%)

167 of 167 relevant lines covered (100.0%)

133.32 hits per line

Relevant lines Covered
Build:
Build:
167 RELEVANT LINES 167 COVERED LINES
133.32 HITS PER LINE
Source Files on master
  • Tree
  • List 28
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
27455807458 v4.4.2 [Claude] Support the dedicated `mariadb` driver (closes #15) (#16) * Support the dedicated `mariadb` driver (closes #15) Laravel 11 introduced a dedicated `Illuminate\Database\MariaDbConnection` (extending `MySqlConnection`) used whenever the co... push 13 Jun 2026 03:56AM UTC web-flow github
100.0
27455792490 master [Claude] Support the dedicated `mariadb` driver (closes #15) (#16) * Support the dedicated `mariadb` driver (closes #15) Laravel 11 introduced a dedicated `Illuminate\Database\MariaDbConnection` (extending `MySqlConnection`) used whenever the co... push 13 Jun 2026 03:55AM UTC web-flow github
100.0
27455701894 claude/mariadb-driver-support Cover the null-dispatcher branch in TransactionEventHub Coveralls reported a coverage drop (the only missed line was the early `return;` added for the nullable-dispatcher guard in TransactionEventHub::initializeWithDispatcher()). Add a focused un... Pull #16 13 Jun 2026 03:51AM UTC mpyw github
100.0
27455202536 claude/mariadb-driver-support Fix QueryException tail boundary: connection details land in Laravel 12, not 13 The Host/Port/Database segments were added to QueryException messages in Laravel 12 (verified: L11 omits them, L12/L13 include them), so the helper must switch to the... Pull #16 13 Jun 2026 03:29AM UTC mpyw github
99.4
20214073855 master [Claude] Add PHP 8.5 to CI test matrix (#14) * [Claude] Add PHP 8.5 to CI test matrix * Fix PHPDoc annotation order for php-cs-fixer 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthro... push 14 Dec 2025 09:03PM UTC web-flow github
100.0
20213696045 claude/php-8.5-support Collect coverage from reconnection tests Add --coverage-clover flag to reconnection tests and upload both coverage reports to Coveralls. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@ant... Pull #14 14 Dec 2025 08:30PM UTC mpyw github
100.0
20213075082 claude/php-8.5-support Exclude bootstrap files from PHPStan analysis Bootstrap files contain trait stubs for testing that PHPStan incorrectly reports as unused. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@an... Pull #14 14 Dec 2025 07:35PM UTC mpyw github
95.73
13646015787 v4.4.1 refactor: 💡 Remove useless branch push 04 Mar 2025 04:08AM UTC mpyw github
100.0
13646006723 master refactor: 💡 Remove useless branch push 04 Mar 2025 04:07AM UTC mpyw github
100.0
13645973467 v4.4.0 Bump version and Fixes wrong documentation (#13) * chore: 🤖 Bump version * docs: ✏️ Correct wrong documentation ✅ Closes: #12 * fix: 🐛 Use static reflection * test: 💍 Remove useless assertion * test: 💍 Don't use `env()` in tests * style: 💄 ... push 04 Mar 2025 04:05AM UTC web-flow github
99.4
See All Builds (80)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc