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

Refactor DMLQueryBuilder #746

Merged
merged 26 commits into from
Nov 1, 2023
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
7145e81
Refactor DMLQueryBuilder
Tigrov Aug 18, 2023
dbe3957
Get uniques using `getTableIndexes()` and `getTableUniques()`
Tigrov Aug 19, 2023
57ece13
Fix @psalm-var
Tigrov Aug 19, 2023
de98665
Fix #61 (point 2)
Tigrov Aug 19, 2023
ef2fa1b
Fix #61 (point 2) add test
Tigrov Aug 20, 2023
cab52c5
Improve test
Tigrov Aug 21, 2023
230859a
Remove methods with `NotSupportedException`
Tigrov Aug 22, 2023
a6a7b64
Fix test issues
Tigrov Aug 22, 2023
adfae64
Fix test issues
Tigrov Aug 22, 2023
d07b871
Revert "Remove methods with `NotSupportedException`"
Tigrov Aug 22, 2023
a26b3ac
Add line to CHANGELOG.md
Tigrov Aug 26, 2023
91c1167
Merge branch 'master' into refactor_dml_query_builder
Tigrov Aug 26, 2023
ae66957
Change order of checks
Tigrov Sep 6, 2023
c0ced2f
Merge remote-tracking branch 'origin/master' into refactor_dml_query_…
Tigrov Sep 6, 2023
b82cb14
Improve performance of quoting column names up to 10% using `array_ma…
Tigrov Oct 4, 2023
b4ffbb8
Merge branch 'master' into refactor_dml_query_builder
Tigrov Oct 27, 2023
47746f8
Update CHANGELOG.md
Tigrov Oct 28, 2023
da705d2
remove `Generator` in `DMLQueryBuilderInterface`
Tigrov Oct 30, 2023
510afd1
Update psalm
Tigrov Oct 30, 2023
911996c
Apply suggestions from code review
Tigrov Oct 30, 2023
8aa612a
Apply StyleCI
Tigrov Oct 30, 2023
70cd177
Remove `Generator` from other places
Tigrov Oct 31, 2023
ee4b859
Return and deprecate `getTypecastValue()` method and `$table` parameter
Tigrov Oct 31, 2023
ddfe79d
Fix psalm
Tigrov Oct 31, 2023
0fe88c1
Fix psalm
Tigrov Oct 31, 2023
fda606c
Update CHANGELOG.md
vjik Oct 31, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix #61 (point 2) add test
Tigrov committed Aug 20, 2023
commit ef2fa1b2595ed8729b87bb9c7e4b19c9bf00d0c4
12 changes: 12 additions & 0 deletions tests/Provider/QueryBuilderProvider.php
Original file line number Diff line number Diff line change
@@ -235,6 +235,18 @@ public static function batchInsert(): array
})(),
'',
],
'with associative values' => [
'type',
['int_col', 'int_col2'],
[['first' => 1, 'second' => 2]],
'expected' => DbHelper::replaceQuotes(
<<<SQL
INSERT INTO [[type]] ([[int_col]], [[int_col2]]) VALUES (:qp0, :qp1)
SQL,
static::$driverName,
),
[':qp0' => 1, ':qp1' => 2],
],
];
}