Skip to content

Customizable batch output file name (add OutputBatchFileName field) #2178

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

Merged
merged 3 commits into from
Apr 7, 2023
Merged

Customizable batch output file name (add OutputBatchFileName field) #2178

merged 3 commits into from
Apr 7, 2023

Conversation

JordanP
Copy link
Contributor

@JordanP JordanP commented Mar 30, 2023

This commit adds the possibility to customize the batch output file name.

Example configuration:

version: "1"
packages:
  - name: db
    path: internal/db
    queries: internal/db
    schema: migrations
    engine: postgresql
    output_batch_file_name: batch_gen.go
    output_models_file_name: model_gen.go

JordanP and others added 3 commits March 30, 2023 12:01
This commit adds the possibility to customize the batch output file name.

Example configuration:

```
version: "1"
packages:
  - name: db
    path: internal/db
    queries: internal/db
    schema: migrations
    engine: postgresql
    output_batch_file_name: batch_gen.go
    output_models_file_name: model_gen.go
```
@kyleconroy
Copy link
Collaborator

@JordanP Your PR had some merge conflicts due to some recent activity in the repo. I fixed those and added a few tests for your changes. Will merge once the tests pass.

@kyleconroy kyleconroy merged commit e5d4fba into sqlc-dev:main Apr 7, 2023
@JordanP
Copy link
Contributor Author

JordanP commented Apr 7, 2023

@kyleconroy that's nice of you, thanks !

@JordanP JordanP deleted the jordanp-add-output-batch-filename branch April 7, 2023 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants