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

[PECO-1052] Added enum type class to DBSQLParameter class #175

Merged
merged 3 commits into from
Sep 13, 2023

Conversation

nithinkdb
Copy link
Contributor

It's unsafe to allow the user to pick any string. We should instead limit the types that they can set on parameters. We do this via an enum.

@kravets-levko
Copy link
Contributor

Can you please update tests (import and use enum values instead of string constants)? Also, please run npm run prettier fix + npm run lint

}

interface DBSQLParameterOptions {
type?: DBSQLParameterType;
value: DBSQLParameterValue;
}

export default class DBSQLParameter {
export class DBSQLParameter {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just curious - why you decided to change export type?

Signed-off-by: nithinkdb <nithin.krishnamurthi@databricks.com>
Signed-off-by: nithinkdb <nithin.krishnamurthi@databricks.com>
@kravets-levko kravets-levko merged commit da6bb62 into databricks:main Sep 13, 2023
4 of 5 checks passed
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