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

feat: #310 camelcase option #343

Merged
merged 2 commits into from
Oct 7, 2021
Merged

feat: #310 camelcase option #343

merged 2 commits into from
Oct 7, 2021

Conversation

pantapita
Copy link
Contributor

I have made new fork as the old one was way too old.
Implemented camelcase option in QueryObjectConfig, added unit tests for camelcase (without, false, true).

BR

@pantapita pantapita changed the title feat: #333 camelcase option feat: #310 camelcase option Oct 5, 2021
@@ -520,6 +520,74 @@ testClient(
},
);

testClient(
Copy link
Collaborator

Choose a reason for hiding this comment

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

This and the following test are redundant, please leave just one

},
);

testClient(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add a test for a field that has no name, somthing like "SELECT 1, 2, 3". I wanna know how this behaves for auto generated field names

query/query.ts Outdated
@@ -151,6 +152,21 @@ export class QueryObjectResult<
> extends QueryResult {
public rows: T[] = [];

private _snakeToCamelCase = (input: string) =>
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't use TypeScript privates here, we use JavaScript privates

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_class_fields

Copy link
Collaborator

@Soremwar Soremwar left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @pantapita

@Soremwar Soremwar merged commit a546291 into denodrivers:main Oct 7, 2021
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