Skip to content
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

odata/abstract-sql-compiler: Add support for specifying the model name for config files #778

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

Page-
Copy link
Collaborator

@Page- Page- commented Jun 26, 2024

This allows choosing which model to use when the config file contains multiple models

Change-type: minor

@Page- Page- requested a review from a team June 26, 2024 12:09
@Page- Page- enabled auto-merge June 26, 2024 12:10
src/bin/utils.ts Outdated Show resolved Hide resolved
@Page- Page- requested a review from otaviojacobi June 26, 2024 12:35
@Page- Page- force-pushed the select-model branch 2 times, most recently from 3c0b2a3 to 0ff3c6b Compare June 26, 2024 12:35
export const getAbstractSqlModelFromFile = (
modelFile: string,
modelName: string | undefined,
Copy link
Contributor

@otaviojacobi otaviojacobi Jun 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you probably need modelName?: string no?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apparently tests use this function which is why I didn't catch it (tests use a different tsconfig). I did intentionally make it required because for the cli use cases it should always be provided, but for tests it's a bit different - I think I'll make the tests bend to the better method for the real code

@Page- Page- requested a review from otaviojacobi June 26, 2024 13:48
src/bin/utils.ts Show resolved Hide resolved
…e for config files

This allows choosing which model to use when the config file contains
multiple models

Change-type: minor
@Page- Page- requested a review from otaviojacobi June 27, 2024 11:11
@Page- Page- merged commit c1eee2b into master Jun 27, 2024
48 checks passed
@Page- Page- deleted the select-model branch June 27, 2024 13:39
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