Add schema flags to readme
This commit is contained in:
parent
8d486ef51b
commit
3929729a2c
1 changed files with 6 additions and 4 deletions
10
README.md
10
README.md
|
@ -223,6 +223,7 @@ not to pass them through the command line or environment variables:
|
|||
| Name | Default |
|
||||
| --- | --- |
|
||||
| basedir | none |
|
||||
| schema | "public" |
|
||||
| pkgname | "models" |
|
||||
| output | "models" |
|
||||
| whitelist | [ ] |
|
||||
|
@ -261,15 +262,16 @@ sqlboiler postgres
|
|||
|
||||
Flags:
|
||||
-b, --basedir string The base directory has the templates and templates_test folders
|
||||
-d, --debug Debug mode prints stack traces on error
|
||||
-w, --whitelist stringSlice Only include these tables in your generated package
|
||||
-x, --exclude stringSlice Tables to be excluded from the generated package
|
||||
-s, --schema string The name of your database schema, for databases that support real schemas (default "public")
|
||||
-p, --pkgname string The name you wish to assign to your generated package (default "models")
|
||||
-o, --output string The name of the folder to output to (default "models")
|
||||
-t, --tag stringSlice Struct tags to be included on your models in addition to json, yaml, toml
|
||||
-d, --debug Debug mode prints stack traces on error
|
||||
--no-auto-timestamps Disable automatic timestamps for created_at/updated_at
|
||||
--no-hooks Disable hooks feature for your models
|
||||
--no-tests Disable generated go test files
|
||||
-o, --output string The name of the folder to output to (default "models")
|
||||
-p, --pkgname string The name you wish to assign to your generated package (default "models")
|
||||
-t, --tag stringSlice Struct tags to be included on your models in addition to json, yaml, toml
|
||||
```
|
||||
|
||||
Follow the steps below to do some basic model generation. Once we've generated
|
||||
|
|
Loading…
Add table
Reference in a new issue