Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to use directory and subdirectories to store queries? #2205

Unanswered
soasada asked this question in Q&A
Discussion options

Hi, I have the following config:

version: "2"
sql:
 - schema: "db/migrations"
 queries: "db/queries"
 engine: "postgresql"
 gen:
 go:
 sql_package: "pgx/v5"
 overrides:
 - db_type: "uuid"
 go_type: "github.com/google/uuid.UUID"
 - db_type: "uuid"
 go_type: "github.com/google/uuid.NullUUID"
 nullable: true
 emit_json_tags: true
 json_tags_case_style: "camel"
 package: "database"
 out: "internal/database"

How can I specify queries directory to also hold subdirectories? I tried with db/queries/** or db/queries/* but is failing. Any ideas?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /