Skip to content

Commit

Permalink
docs(Cwgo):update db tutorials version (#1068)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxialuozi committed May 7, 2024
1 parent 8488f13 commit 14c5c83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions content/en/docs/cwgo/tutorials/db/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ OPTIONS:
--signable Specify detect integer field\'s unsigned type, adjust generated data type (default: false)
--type_tag Specify generate field with gorm column type tag (default: false)
--index_tag Specify generate field with gorm index tag (default: false)
--sql_dir value Specify a sql file or directory(Note: The 'dsn' parameter is invalid when using this parameter)
--help, -h show help (default: false)
```

Expand All @@ -58,8 +59,7 @@ OPTIONS:
--signable specifies detect integer field\'s unsigned type, adjust generated data type, the default is false
--type_tag specifies whether to generate gorm's type tag for the specified field, the default is false
--index_tag specifies whether to generate gorm's index tag for the specified field, the default is false
```

--sql_dir value Specify a sql file or directory(Note: The 'dsn' parameter is invalid when using this parameter)
## Example

```sh
Expand Down
4 changes: 3 additions & 1 deletion content/zh/docs/cwgo/tutorials/db/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ OPTIONS:
--signable Specify detect integer field\'s unsigned type, adjust generated data type (default: false)
--type_tag Specify generate field with gorm column type tag (default: false)
--index_tag Specify generate field with gorm index tag (default: false)
--sql_dir value Specify a sql file or directory(Note: The 'dsn' parameter is invalid when using this parameter)
--help, -h show help (default: false)
```

Expand All @@ -56,8 +57,9 @@ OPTIONS:
--model_pkg value 指定 model 的包名
--nullable 指定生成字段是否为指针当字段为 nullable,默认为 false
--signable 指定字段是否检测整型列 unsigned 类型来调整生成相应的数据类型,默认为 false
--type_tag 指定字段是否生成 gorm 的 type tag,默认为 false
--type_tag 指定字段是否生成 gorm 的 type tag,默认为 false
--index_tag 指定字段是否生成 gorm 的 index tag,默认为 false
--sql_dir value 指定一个sql文件或者目录(注意:当使用此参数时,--dsn参数失效)
```

## 用法示例
Expand Down

0 comments on commit 14c5c83

Please sign in to comment.