Skip to content

Commit b734d88

Browse files
committed
update readme + changelog
1 parent fc5e854 commit b734d88

File tree

2 files changed

+124
-10
lines changed

2 files changed

+124
-10
lines changed

CHANGELOG.md

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
# Changelog
2+
3+
All notable changes to `laravel-sub-query` will be documented in this file
4+
5+
## [v1.9.7 (2021-02-04)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.9.6...v1.9.7)
6+
### Added
7+
- CHANGELOG
8+
- nice banner :)
9+
10+
## [v1.9.6 (2021-01-24)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.9.5...v1.9.6)
11+
### Fixed
12+
- for deleting same queries with alias
13+
14+
## [v1.9.5 (2021-01-24)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.9.4...v1.9.5)
15+
### Added
16+
- method forceIndex
17+
18+
## [v1.9.4 (2020-12-10)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.9.3...v1.9.4)
19+
### Added
20+
- casting value for method withMath and same
21+
22+
## [v1.9.3 (2020-11-06)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.9.2...v1.9.3)
23+
### Added
24+
- method withMath
25+
- test for withMath method
26+
27+
### Changed
28+
- composer.json max stable version
29+
30+
## [v1.9.2 (2020-10-21)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.9.1...v1.9.2)
31+
### Added
32+
- query caching
33+
- methods likeLeft, likeRight, like, castColumn
34+
- test for likeLeft, likeRight, like, castColumn methods
35+
36+
## [v1.9.1 (2020-08-20)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.8.1...v1.9.1)
37+
### Added
38+
- methods loadOneLatest, loadOneOldest
39+
- test for loadOneLatest, loadOneOldest methods
40+
41+
## [v1.8.1 (2020-06-27)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.7.5...v1.8.1)
42+
### Added
43+
- method loadLimit
44+
- test for loadLimit method
45+
46+
### Changed
47+
- PSR12
48+
49+
## [v1.7.5 (2020-06-09)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.7.4...v1.7.5)
50+
### Changed
51+
- composer.json min stable version
52+
53+
## [v1.7.4 (2020-05-17)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.7.3...v1.7.4)
54+
### Changed
55+
- README updates
56+
57+
## [v1.7.3 (2020-04-06)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.7.2...v1.7.3)
58+
### Changed
59+
- for repeated requests
60+
61+
## [v1.7.2 (2020-04-06)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.7.1...v1.7.2)
62+
### Changed
63+
- method orderByRelation
64+
- test for orderByRelation method
65+
66+
## [v1.7.1 (2020-04-05)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.7...v1.7.1)
67+
### Changed
68+
- query optimization
69+
70+
## [v1.7 (2020-04-04)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.6...v1.7)
71+
### Added
72+
- method orderByRelation
73+
- test for orderByRelation method
74+
75+
### Changed
76+
- tests codestyle enhancements
77+
- some tests
78+
79+
## [v1.6 (2020-04-28)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.5...v1.6)
80+
### Removed
81+
- relations
82+
83+
## [v1.5 (2020-04-25)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.4...v1.5)
84+
### Added
85+
- alias
86+
87+
## [v1.4 (2020-04-25)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.3...v1.4)
88+
### Added
89+
- method withAvg
90+
- test for withAvg method
91+
92+
## [v1.3 (2020-04-25)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.2...v1.3)
93+
### Added
94+
- method withMax
95+
- test for withMax method
96+
97+
## [v1.2 (2020-04-25)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.1...v1.2)
98+
### Added
99+
- bages
100+
- method withMin
101+
- method loadMin
102+
- test for withMin method
103+
104+
### Changed
105+
- optimized other methods
106+
107+
## [v1.1 (2020-04-24)](https://github.com/Alexmg86/laravel-sub-query/compare/v1.0...v1.1)
108+
### Added
109+
- gitignore
110+
- php.yml
111+
- test for withSum method
112+
113+
### Changed
114+
- license file
115+
116+
## v1.0 (2020-04-23)
117+
### Added
118+
- initial release

README.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,15 @@
88

99
## Why is this package needed?
1010

11-
With standard use of Laravel, if you want the sum or find the maximum column value in the related model, you will have two database queries.
12-
With this methods, it all turns into one query to the database and there is no need to load extra data.
13-
It is also possible to sort by related models. And this sorting works with all types of relations.
14-
Added ability to load only one latest or oldest related model for each model without multiple queries.
11+
With standard use of Laravel, if you want the sum or find the maximum column value in the related model, you will have two database queries. What if you need to get a list of one hundred records? With this methods, it all turns into one query to the database and there is no need to load extra data.
12+
13+
I've also added methods for sorting by related model, or when you only need to get one latest or oldest related model for each model without multiple queries. And there is a lot more to speed up your development and code readability.
14+
1515
I often use this in my work and I hope it will be useful to you!
1616

17-
## Last added
17+
## Changelog
1818

19-
2021/01/24 - Added method [forceIndex](https://github.com/Alexmg86/laravel-sub-query/wiki/Some-sugar#force-index)
20-
2020/12/10 - Added casting for withSum('items:price:signed') and others
21-
2020/11/03 - Added method [withMath](https://github.com/Alexmg86/laravel-sub-query#working-with-columns)
22-
2020/10/21 - Added [some sugar](https://github.com/Alexmg86/laravel-sub-query#sugar)
23-
2020/10/06 - Added caching of [received data](https://github.com/Alexmg86/laravel-sub-query#caching)
19+
Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.
2420

2521
## Say thank you
2622

0 commit comments

Comments
 (0)