Skip to content

How do you use bob step by step? #370

@switchupcb

Description

@switchupcb

I searched the pkg.dev and documentation website

How do you use bob step by step?

  1. Installing the library is not straightforward. I can't find a go get or go install anywhere.
  2. https://bob.stephenafamo.com/docs/code-generation/configuration/ references a bobgen.yaml but I cannot find an example anywhere.
  3. https://bob.stephenafamo.com/docs/code-generation/psql shows a go run commend, but then references an unreferenced yaml key for driver configuration.

So, what is a step by step guide to running bob with github.com/jackc/pgx/v5 driver and calling a create and insert?

I am also hoping that bob generates the code for me to connect to database so I don't have to configure all of that too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions