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

mpyw / laravel-database-advisory-lock
100%

Build:
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 master
branch: master
CHANGE BRANCH
x
Reset
  • master
  • bump-version
  • claude/mariadb-driver-support
  • claude/php-8.5-support
  • dev
  • fix/postgres-finite-timeout
  • improve-pg-timeout
  • 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
27455792490

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
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
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
13646006723 master refactor: 💡 Remove useless branch push 04 Mar 2025 04:07AM UTC mpyw github
100.0
13645926722 master 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:00AM UTC web-flow github
99.4
6951338689 master Update README.md push 22 Nov 2023 12:48AM UTC web-flow github
100.0
6951305230 master Update README.md push 22 Nov 2023 12:43AM UTC web-flow github
100.0
6951293685 master Update README.md push 22 Nov 2023 12:42AM UTC web-flow github
100.0
6947762612 master Update README.md push 21 Nov 2023 06:01PM UTC web-flow github
100.0
6947290944 master Update README.md push 21 Nov 2023 05:16PM UTC web-flow github
100.0
6726229446 master fix: failure to resolve php-cs-fixer in unstable version (#11) push 01 Nov 2023 11:24PM UTC web-flow github
100.0
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