File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -41,9 +41,12 @@ USAGE:
4141 sqlc-restruct separate-interface [command options] [arguments...]
4242
4343OPTIONS:
44- --iface-pkg-name value The package name where the separated models and Querier will be located.
45- --iface-pkg-url value The package URL where the separated models and Querier will be located (e.g. "github.com/<user>/<repo>/path/to/pkg").
46- --iface-dir value The directory path where the separated models and Querier will be located.
44+ --iface-pkg-name value The package name where the separated Querier will be located.
45+ --iface-pkg-url value The package URL where the separated Querier will be located. (e.g. "github.com/<user>/<repo>/path/to/pkg")
46+ --iface-dir value The directory path where the separated Querier will be located.
47+ --models-pkg-name value The package name where the separated models will be located. (default: --models-pkg-name value)
48+ --models-pkg-url value The package URL where the separated models will be located. (default: --models-pkg-url value)
49+ --models-dir value The directory path where the separated models will be located. (default: --iface-dir value)
4750 --impl-dir value The original directory where the sqlc-generated code is located. (default: ".")
4851 --impl-sql-suffix value The suffix for sqlc-generated files from SQL files. (default: ".sql.go")
4952 --models-file-name value The file name for the sqlc-generated models file. (default: "models.go")
@@ -55,5 +58,5 @@ We recommend chaining the `//go:generate` directive for `sqlc-restruct` right af
5558
5659``` go
5760// go:generate sqlc generate
58- // go:generate sqlc-restruct separate-interface --models-file-name=models.gen.go --querier-file-name=querier.gen.go -- iface-dir=domain/repos --iface-pkg-name=repos --iface-pkg-url=github.com/example/domain/repos
61+ // go:generate sqlc-restruct separate-interface --iface-dir=domain/repos --iface-pkg-name=repos --iface-pkg-url=github.com/example/domain/repos
5962```
You can’t perform that action at this time.
0 commit comments