indigocoding/module-connection-extend
Composer 安装命令:
composer require indigocoding/module-connection-extend
包简介
Indigo Connection Extend extension for Magento2
README 文档
README
This extension helps with using split database (checkout, sales) for Magento CE, and user-defined resources name in declarative schema (e.g: db_schema.xml) instead of only the 3 default resources (default, checkout, sales).
This extension is meant to be used by developers for easier development. Work with both Magento 2 Open Source and Commerce.
Requirements
Magento 2.3+ (Tested with Magento 2.3.0 EE, 2.3.4 CE and 2.4.0 CE)
✓ Install via composer (recommended)
Run the following command under your Magento 2 root dir:
composer require indigocoding/module-connection-extend
php bin/magento maintenance:enable
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento maintenance:disable
php bin/magento cache:flush
Install manually under app/code
- Download & place the contents of this repository under {YOUR-MAGENTO2-ROOT-DIR}/app/code/Indigo/ConnectionExtend
- Run the following commands under your Magento 2 root dir:
php bin/magento maintenance:enable
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento maintenance:disable
php bin/magento cache:flush
Usage
Magento split database (checkout, sales) for Magento Open Source
After the installation, setup sales and/or checkout connection(s) and resource(s) by modifying app/etc/env.php file, and create schemas (defined in env.php) + grant permission to database user.
If module PayPal_Braintree is enabled, delete its entry in setup_module table.
Run php bin/magento setup:upgrade.
User-defined resources
After the installation, Go to The Magento 2 admin panel.
Go to Stores -> Settings -> Configuration, under tab Advanced -> System -> Connection Extend Configuration. In Connection Extend List setting, enter the list of resource name as string, separated by a comma.
Setup new connection and resource by modifying app/etc/env.php file (new resource key must be the same as configured above), and creating schema (defined in env.php) + grant permission to database user.
Put the new resource name in db_schema.xml file whenever needed and enjoy!
Copyright © 2021 IndigoCoding. All rights reserved.
indigocoding/module-connection-extend 适用场景与选型建议
indigocoding/module-connection-extend 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 7, 最近一次更新时间为 2021 年 02 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 indigocoding/module-connection-extend 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 indigocoding/module-connection-extend 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2021-02-20