mage4/magento2-run-sql
最新稳定版本:1.0.0
Composer 安装命令:
composer require mage4/magento2-run-sql
包简介
Magento extension to run SQL queries directly from console command.
关键字:
README 文档
README
Magento extension to run SQL queries directly from console command.
Install via composer
composer require mage4/magento2-run-sql
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
Install Package manually by copy-paste
Download the code from this repo under Magento® 2 following directory:
app/code/Mage4/RunSql
And run following commands to enable the module:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
Features
- Execute DDL queries.
- Execute DML queries.
- Execute DQL queries.
Examples
- Select records from
storetable:
bin/magento mage4:run-sql "select * from store"
- Insert record into
storetable:
bin/magento mage4:run-sql 'insert into store (code, website_id, group_id, name, sort_order, is_
active) VALUES ("test", 1, 1, "Test Store", 0, 0)'
- Delete record from
storetable:
bin/magento mage4:run-sql "delete from store where store_id=5"
- Fetch
storetable schema:
bin/magento mage4:run-sql "describe store" -f
About us
We’re an innovative development agency building awesome websites, webshops and web applications with Latest Technologies. Check out our website mage4.com or email.
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-07-12




