定制 mage4/magento2-run-sql 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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 store table:
bin/magento mage4:run-sql "select * from store"

  • Insert record into store table:
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 store table:
bin/magento mage4:run-sql "delete from store where store_id=5"

  • Fetch store table 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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固