Skip to content

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
alfonsodev pushed a commit to ExponentiaTeam/sqlc that referenced this pull request Oct 13, 2025
…qlc-dev#2178)

* Customizable batch output file name (add OutputBatchFileName field)

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
```

* test: Add tests for new batch filename config

---------

Co-authored-by: Kyle Conroy <kyle@conroy.org>
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