Skip to content
Discussion options

You must be logged in to vote

To achieve this, you'll have to roll your own tool instead of using one of the prebuilt generation tools, but that is not too complicated, you can copy bobgen-mysql/main.go as a starting point, it is less than 100 lines including comments.

There are several ways to achieve this:

Building a dynamic config

With your tool, you can pass your config directly instead of relying on a bobgen.yaml file. So you can programatically build the config to include the aliases for each table.

Using Plugins

You can use a Plugin (documentation pending...) plugin to achieve a similar thing:

  • You can either use a StatePlugin and programatically add the alias configuration to your config.
  • Or you can use a Temp…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hapcode
Comment options

Answer selected by stephenafamo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #426 on May 22, 2025 16:44.