BoxLang 🚀 A New JVM Dynamic Language Learn More...
Install Quickly using commandbox:
install commandbox-quickly
This command assumes that you are adhering to these Quick conventions:
Quickly hasn't been tested on mysql because I don't use it. If you run into problems let me know and I'll look into it.
First, cd to your site root.
Commandbox does not run in the context of your site and therefore has no datasources. Datasources are created on the fly by passing a database name and credentials.
dbaseName assumes localhost by default. If your database is somewhere else, use hostname:port: dbaseName. Port defaults are mssql: 1433, mysql: 3306
dbaseType and tableList are optional. If you leave the database type blank it defaults to mssql (mysql is the alternative).
If you leave tableList blank it will create entities for all of the dbo.tables it finds that have names that end in "ies" or "s", excluding sysdiagrams and cfmigrations. If you want to limit this to specific tables, pass in a comma-delimited list (with,no,spaces). Keep in mind that if you leave out a table, you may may have to add relationships manually
It will create these entities within a models/entities folder in your site and will prompt you to confirm overwriting if it finds an existing file.
quickly create entities dbaseName userName passWord dbaseType tableList
install commandbox-quickly
```
$
box install commandbox-quickly