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
其他信息
- 授权协议: MIT
- 更新时间: 2014-02-21