Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve gen dao to support removeFieldPrefix #3208

Merged
merged 6 commits into from
Dec 18, 2023
Merged

Conversation

zhangyuyu
Copy link
Contributor

@zhangyuyu zhangyuyu commented Dec 15, 2023

Given config the removeFieldPrefix as below,
When run gf gen dao
Then you can have the fields without prefix in struct(do/entity).

gfcli:
  gen:
    dao:
      - link: "mysql:user:pass@tcp(x.xx.xx.xx:3306)/xx"
        removePrefix: "t_"
        removeFieldPrefix: "f_"
        jsonCase: "Snake"

@hailaz
Copy link
Member

hailaz commented Dec 15, 2023

#3205

@gqcn gqcn added the ready to merge Used in PR, which means this PR is reviewed. label Dec 18, 2023
@gqcn gqcn merged commit 5657900 into gogf:master Dec 18, 2023
20 checks passed
@zhangyuyu zhangyuyu deleted the develop branch December 19, 2023 02:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge Used in PR, which means this PR is reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants