-
Notifications
You must be signed in to change notification settings - Fork 51
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
Update documentation for code generation #182
Comments
I would appreciate a PR on this, or other documentation improvements in general. |
@rkrishnasanka Simply call |
Yeah I figured it out shortly after commenting. I missed the link for bob executors. I'll do a PR once I'm done implementing stuff. |
Is there a discord for this ? I feel like its better to get some direct feedback. The query parameters are confusing. For example:
In this scenario, I get:
as the error |
If you are using the code generation, the view/table is already created for you. Simply use: queue, err := models.Queues.Query(
context.Background(),
bob.NewDB(db),
models.SelectWhere.Queues.QueueName.EQ(queuename),
).One()
//queue is of type models.Queues now |
@jacobmolby So turns out that there are a couple more errors happening here that made this complicated #187 . so thats why I've just been dealing with bugs. |
@rkrishnasanka I couldn't find any documentationion of how to use the CLI to generate the code, could you maybe share how you did it? |
Here's the command I use go run github.com/stephenafamo/bob/gen/bobgen-psql@latest -c ./config/bobgen.yaml Here's the config
|
It would be great if there was a full example for:
The text was updated successfully, but these errors were encountered: