ride / cli-orm
ORM commands for the Ride CLI
Installs: 4 087
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 8
Forks: 0
Open Issues: 0
Requires
- ride/app: ^1.0.0
- ride/app-orm: ^1.0.0
- ride/cli: ^1.0.0
- ride/lib-orm: ^1.0.0
- ride/lib-system: ^1.0.0
This package is auto-updated.
Last update: 2024-11-13 00:26:11 UTC
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