Skip to content

feat: add query builder to determine strict mode - #569

Open
aaqilniz wants to merge 1 commit into
loopbackio:masterfrom
aaqilniz:feat/strict-mode
Open

aaqilniz wants to merge 1 commit into
loopbackio:masterfrom
aaqilniz:feat/strict-mode

Conversation

@aaqilniz

@aaqilniz aaqilniz commented Mar 3, 2024 •

Copy link
Copy Markdown
Contributor

This PR adds a driver-level query method (buildQueryIsStrict) to detect whether the target MySQL instance or session has strict mode enabled.

##Purpose and Context:

The purpose of this PR is to provide an underlying query method for loopback-connector and then ultimately for loopback-datasource-juggler to determine if strict mode is enabled.

When strict mode is enabled, the model discover generator would add jsonSchema.maxLength to model properties to provide validation.

Related Issue:

Related PRs:

Checklist

  • DCO (Developer Certificate of Origin) signed in all commits
  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • Commit messages are following our guidelines

@aaqilniz
aaqilniz force-pushed the feat/strict-mode branch 5 times, most recently from cfccab3 to bbda55f Compare April 13, 2024 16:36
@aaqilniz
aaqilniz marked this pull request as ready for review April 13, 2024 17:03
@aaqilniz
aaqilniz force-pushed the feat/strict-mode branch 7 times, most recently from 0cce059 to 26608c8 Compare April 14, 2024 06:01
@aaqilniz
aaqilniz changed the base branch from master to update-dep-nov2022 April 14, 2024 06:04
@aaqilniz
aaqilniz changed the base branch from update-dep-nov2022 to master April 14, 2024 06:04
@aaqilniz
aaqilniz requested a review from samarpanB April 14, 2024 06:05
@aaqilniz
aaqilniz marked this pull request as draft October 25, 2026 10:19
Signed-off-by: Muhammad Aaqil <aaqilcs102@gmail.com>
@aaqilniz
aaqilniz marked this pull request as ready for review October 25, 2026 15:08
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.

1 participant