Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Beta #3760

Merged
merged 18 commits into from
Dec 13, 2024
Merged

Beta #3760

merged 18 commits into from
Dec 13, 2024

Conversation

AndriiSherman
Copy link
Member

No description provided.

ProvorovOleksii and others added 18 commits December 5, 2024 18:04
- Added onIndex config for select.from() and all joins
- Added mysql-common tests for onIndex config usage
- In mysql-custom.test.ts removed deprecated placeholder and use sql.placeholder instead
> Command as for now accepts only --sql flag and returns diff between current state and drySchema and logs it to console
- Added type check for `onIndex` config param that it could be used only with MySqlTable, not with Subquery and View
- Removed UniqueConstraintBuilder from IndexForHint type, it shoild be only with IndexBuilder or string
- Changed convertIndexToString function due to existance only IndexBuilder or string
- Added new tests for mysql-common with subquery and view
- Added drizzle-orm type-test for index hints
- Formatted with dprint mysql select/ select.types files
- onIndex config params now can accept 1 param without array, or multiple params in array
- Added toArray function which will check if value array -> return value, if not -> return [value]
- Updated mysql-common tests
> Added tests to check sql query include correct USE INDEX options for 1 and multiple indexes
- Updated type-tests
@AndriiSherman AndriiSherman merged commit 10d2230 into main Dec 13, 2024
3 of 10 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants