-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
bugIt is confirmed a bug, but don't worry, we'll handle it.It is confirmed a bug, but don't worry, we'll handle it.doneThis issue is done, which may be release in next version.This issue is done, which may be release in next version.
Description
1. What version of Go and system type/arch are you using?
go version go1.19.1 darwin/arm64
2. What version of GoFrame are you using?
CLI Built Detail:
Go Version: go1.17.13
GF Version: v2.3.2
Git Commit: 2023-02-15 14:13:32 ad737ded3cd1354cb6f4208f11fcd8f99f94c5f3
Build Time: 2023-02-15 14:17:00
3. Can this issue be re-produced with the latest release?
4. What did you do?
This's my config.yaml
gfcli:
gen:
dao:
- link: "mysql:root:12345678@tcp(localhost:3306)/cc_sys"
tables: ""
removePrefix: "s_,u_,c_,w_"
descriptionTag: true
noModelComment: true
group: "sys"
clear: true
overwriteDao: true
- link: "mysql:root:12345678@tcp(localhost:3306)/cc_book"
tables: ""
removePrefix: ""
descriptionTag: true
noModelComment: true
group: "book"
clear: true
overwriteDao: true
I added clear: true to each databaes configuration.
When I use gen dao . Only the entity configured at the bottom will be retained, and all previous ones will be cleard.
5. What did you expect to see?
I hope that even if clear: true is configured for each database, the previous entity will not be cleard.
6. What did you see instead?
Metadata
Metadata
Assignees
Labels
bugIt is confirmed a bug, but don't worry, we'll handle it.It is confirmed a bug, but don't worry, we'll handle it.doneThis issue is done, which may be release in next version.This issue is done, which may be release in next version.