Skip to content

Additional Struct Tags #245

Answered by stephenafamo
safaci2000 asked this question in Q&A
Discussion options

You must be logged in to vote

The tags should be outside the psql block. Along with a few other options

tags: ["db", "json"]
struct_tag_casing: snake
wipe: true
psql:
  dsn: "postgres://ht_controller_user:[email protected]:5432/funcap_controller?sslmode=disable"
  wire: true # I don't think this does anything
  shared_schema: false
  no_factory: true
  pkgname: "bobs"
  output: "internal/dbmodels/bobs"
  schemas: 
    - funcap

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@safaci2000
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