Add schema flags to readme

This commit is contained in:
Patrick O'brien 2016-09-09 03:43:36 +10:00
parent 8d486ef51b
commit 3929729a2c

View file

@ -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