Skip to content

Conversation

dushaoshuai
Copy link

@dushaoshuai dushaoshuai commented Jun 15, 2025

  • Do only one thing
  • Non breaking API changes
  • Tested

Do not know how to do testing things, but I’ve tested it in my own project and everything works fine.

What did this pull request do?

Expose WithDefaultQuery, WithoutContext and WithQueryInterface features to gentool.

User Case Description

  1. command line flags
gentool -withDefaultQuery -withoutContext -withQueryInterface
  1. yaml config
version: "0.1"
database:
  # ...
  # create default query in generated code
  withDefaultQuery: false
  # generate code without context constrain
  withoutContext: false
  # generate code with exported interface object
  withQueryInterface: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant