-
-
src/Lunr/Gravity/Database/DMLQueryBuilderInterface.php (Diff revision 1) please use the format
@return <class> <optional var> <description>
-
src/Lunr/Gravity/Database/DMLQueryBuilderInterface.php (Diff revision 1) Is this also supported in sqlite? Because this interface is shared with sqlite.
-
src/Lunr/Gravity/Database/DatabaseDMLQueryBuilder.php (Diff revision 1) Please use the same style as
$is_unfinished_join
-
src/Lunr/Gravity/Database/DatabaseDMLQueryBuilder.php (Diff revision 1) wouldn't this reset the entire object?
[gravity] added support for non recursive common table expressions in gravity
Review Request #542 — Created Feb. 14, 2018 and submitted
Information | |
---|---|
k.hengsdijk | |
Lunr | |
CTEbranch | |
Reviewers | |
lunr | |
added support for non recursive common table expressions in gravity
Summary: |
|
||||||
---|---|---|---|---|---|---|---|
Description: |
|
-
-
-
-
src/Lunr/Gravity/Database/DatabaseDMLQueryBuilder.php (Diff revision 3) Is this really ending the "with" statement though? isn't it a part of the statement?
-
-
src/Lunr/Gravity/Database/DMLQueryBuilderInterface.php (Diff revision 4) Splitting this makes it rather inconvenient to use
-
src/Lunr/Gravity/Database/DatabaseDMLQueryBuilder.php (Diff revision 4) $with is fine. We know it's part of the query
Change Summary:
Now there is only 1 with function that works the same as the union function in gravity.
Diff: |
Revision 5 (+49 -1) |
---|
Change Summary:
added optional parameter for the with statement so that the result columns can be given a name
Diff: |
Revision 6 (+58 -1) |
---|
-
-
src/Lunr/Gravity/Database/DatabaseDMLQueryBuilder.php (Diff revision 6) Are you sure $with is the best name for this?
-
-
src/Lunr/Gravity/Database/DatabaseDMLQueryBuilder.php (Diff revision 6) We don't need recursive for non-recursive CTEs. Keep this for the later review
-
src/Lunr/Gravity/Database/DatabaseDMLQueryBuilder.php (Diff revision 6) keep this for the later review
-
Please set up and run phpcs on your code
-
src/Lunr/Gravity/Database/DMLQueryBuilderInterface.php (Diff revision 7) 'alias' is good enough. We know we're working with 'WITH'
missing type definition
-
src/Lunr/Gravity/Database/DMLQueryBuilderInterface.php (Diff revision 7) missing empty comment line between params and @return
-
-
-
-
src/Lunr/Gravity/Database/DMLQueryBuilderInterface.php (Diff revision 8) this is an list of strings correct?
-
Change Summary:
now the with statement takes an array as parameter in order to give columns a custom name
Diff: |
Revision 9 (+61 -1) |
---|
-
-
src/Lunr/Gravity/Database/DMLQueryBuilderInterface.php (Diff revision 9) Please make that one actually optional
-
-
-
src/Lunr/Gravity/Database/DatabaseDMLQueryBuilder.php (Diff revision 9) this looks way too complicated. What are you trying to achieve here?
Change Summary:
created unit tests
Change Summary:
improved the unit tests and added another test
Diff: |
Revision 12 (+213 -1)
|
---|
-
-
src/Lunr/Gravity/Database/DMLQueryBuilderInterface.php (Diff revision 12) missing title
* Define a WITH clause.
Change Summary:
added unit tests and improved indentation
Diff: |
Revision 13 (+269 -1)
|
---|
Change Summary:
made sean happy by removing the capital letters from arrays
Diff: |
Revision 14 (+269 -1)
|
---|
-
-
src/Lunr/Gravity/Database/DMLQueryBuilderInterface.php (Diff revision 13) Desciptions start with uppercase
-
src/Lunr/Gravity/Database/DatabaseDMLQueryBuilder.php (Diff revision 13) Contains more than just the with
-
-
src/Lunr/Gravity/Database/DatabaseDMLQueryBuilder.php (Diff revision 13) Desciptions start with uppercase
-
src/Lunr/Gravity/Database/SQLDMLQueryBuilder.php (Diff revision 13) Desciptions start with uppercase
-
-
-
src/Lunr/Gravity/Database/DMLQueryBuilderInterface.php (Diff revision 13) generally, start decriptions in upper case
-
-
src/Lunr/Gravity/Database/DatabaseDMLQueryBuilder.php (Diff revision 13) $this->with is empty in this case. You probably don't want .=
-
-
-
-
-
-
Change Summary:
removed some unit tests and improved code based on feedback
Diff: |
Revision 15 (+238 -1)
|
---|
Change Summary:
decided to remove the last unit test because upon closer inspection it doesnt add anything and the code still has 100% coverage withouth that unit test.
Diff: |
Revision 16 (+217 -1)
|
---|
Diff: |
Revision 17 (+217 -1)
|
---|
Change Summary:
changed the name of a test method so that it is less confusing
Diff: |
Revision 18 (+217 -1)
|
---|
-
-
src/Lunr/Gravity/Database/DatabaseDMLQueryBuilder.php (Diff revision 18) isnt it better to use
empty($this->with)
here?