Download the PHP package tourze/doctrine-use-index-walker without Composer
On this page you can find all versions of the php package tourze/doctrine-use-index-walker. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tourze/doctrine-use-index-walker
More information about tourze/doctrine-use-index-walker
Files in tourze/doctrine-use-index-walker
Download tourze/doctrine-use-index-walker
More information about tourze/doctrine-use-index-walker
Files in tourze/doctrine-use-index-walker
Vendor tourze
Package doctrine-use-index-walker
Short Description Auto add USE INDEX in doctrine query
License MIT
Package doctrine-use-index-walker
Short Description Auto add USE INDEX in doctrine query
License MIT
Please rate this library. Is it a good library?
Informations about the package doctrine-use-index-walker
Doctrine Use Index Walker
中文
A Doctrine ORM SQL Walker for automatically adding USE INDEX or FORCE INDEX hints to MySQL queries, helping you optimize SQL performance with minimal code changes.
Features
- Automatically injects
USE INDEXorFORCE INDEXhints into Doctrine queries - Works only on MySQL platforms, compatible with Doctrine ORM 3.0+
- Simple usage via query hints
- Fully compatible with native Doctrine query API
Installation
Install via Composer:
Requirements:
- PHP 8.2 or higher
- Doctrine ORM 3.0+
- Doctrine DBAL 4.0+
Quick Start
Notes
- Only works on MySQL database platforms
- If both
USE INDEXandFORCE INDEXare set,USE INDEXtakes precedence - Index hint syntax depends on your MySQL version; refer to the MySQL documentation for details
How It Works
When the walker is applied to a query, it checks if the platform is MySQL and modifies the SQL accordingly:
- If
UseIndexWalker::HINT_USE_INDEXis set, addsUSE INDEX (index_name)to the FROM clause - If
UseIndexWalker::HINT_FORCE_INDEXis set, addsFORCE INDEX (index_name)to the FROM clause
Contributing
Feel free to open issues or pull requests. Please follow PSR coding standards and include tests where possible.
License
MIT License
All versions of doctrine-use-index-walker with dependencies
PHP Build Version
Package Version
The package tourze/doctrine-use-index-walker contains the following files
Loading the files please wait ...