定制 ride/cli-orm 二次开发

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

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

ride/cli-orm

最新稳定版本:1.1.0

Composer 安装命令:

composer require ride/cli-orm

包简介

ORM commands for the Ride CLI

README 文档

README

This module adds various ORM commands to the Ride CLI.

Commands

orm define

This command generates tables in the database for the defined models.

Syntax: orm define

Alias: od

orm generate

This command generates the classes for all defined models.

Syntax: orm generate

Alias: og

orm model

With this command, you can search in the available models.

Syntax: orm model [<query>]

  • <query>: Query to search the models with

orm model get

Use this command to display the definition of the provided model.

Syntax: orm model get <name>

  • <name>: Name of the model

orm entries update

This command updates all entries of a given model, changing only their dateModified.

Use this command to save all entries in bulk, regenerating the automated fields.

Syntax: orm entries update <model>

  • <model>: Name of the model to update the entries from

orm files delete

This command deletes all files on the file system which are no longer used in the models.

Syntax: orm files delete [--dry]

  • --dry: Add flag to see the files which will be deleted without actually deleting them

Related Modules

Installation

You can use Composer to install this application.

composer require ride/cli-orm

统计信息

  • 总下载量: 4.53k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-02-21