Skip to content

[WIP] feat(query-generator): Generate SELECTs using bind parameters - #9512

Closed
gazoakley wants to merge 1 commit into
sequelize:masterfrom
gazoakley:feat-select-bind
Closed

gazoakley wants to merge 1 commit into
sequelize:masterfrom
gazoakley:feat-select-bind

Conversation

@gazoakley

Copy link
Copy Markdown
Contributor

Pull Request check-list

Please make sure to review and check all of these items:

  • Does npm run test or npm run test-DIALECT pass with this change (including linting)?
  • Does the description below contain a link to an existing issue (Closes #[issue]) or a description of the issue you are solving?
  • Have you added new tests to prevent regressions?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Did you follow the commit message conventions explained in CONTRIBUTING.md?

Description of change

WIP changes to allow SELECTs to use bind parameters instead of directly included values. For example, instead of:

SELECT `email`, `first_name` AS `firstName` FROM `User` WHERE `User`.`email` = '[email protected]' ORDER BY `email` DESC LIMIT 10;

Generate:

SELECT `email`, `first_name` AS `firstName` FROM `User` WHERE `User`.`email` = $1 ORDER BY `email` DESC LIMIT 10;

(with parameter '[email protected]')

@gazoakley
gazoakley force-pushed the feat-select-bind branch 2 times, most recently from a0a3551 to a369f29 Compare June 10, 2018 16:13
@codecov

codecov Bot commented Jun 10, 2018

Copy link
Copy Markdown

Codecov Report

Merging #9512 into master will decrease coverage by 23.1%.
The diff coverage is 100%.

@SimonSchick

Copy link
Copy Markdown
Contributor

Closing this due to age and merge conflicts, feel free to rebase/refresh this PR and re-open.

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.

3 participants