ant0x64 / magento-slave-sql
N/A
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:magento2-module
Requires
- php: ~8.1.0||~8.2.0
- magento/framework: ^102.0.0
This package is auto-updated.
Last update: 2025-06-04 10:20:46 UTC
README
Overview
This Magento 2 module enhances database management capabilities by enabling SELECT queries to execute on a dedicated secondary database connection within Magento applications.
Installation
Prerequisites
- Magento 2.x installed and configured.
- Composer globally installed.
Installation
composer require ant0x64/magento-slave-sql bin/magento module:enable Ant0x64_SlaveSql
Configuration
To utilize the module's features, you need to configure the secondary database connection in Magento's env.php configuration file called slave
:
'db' => [ 'connection' => [ 'slave' => [ 'host' => 'slave_host', 'dbname' => 'slave_db', 'username' => 'db_username', 'password' => 'db_password', 'active' => '1', ], ], ],