Skip to content

Commit b3a6882

Browse files
committed
Completed version 8
1 parent ab1309e commit b3a6882

File tree

6 files changed

+43
-178
lines changed

6 files changed

+43
-178
lines changed

CHANGELOG.md

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](http://keepachangelog.com/)and this project adheres to
6+
[Semantic Versioning](http://semver.org/).
7+
8+
## Changelog
9+
10+
## [8.0.0] - 2024-08-14
11+
12+
### Added
13+
14+
- New API for interacting with query resources loader,
15+
`RunOpenCode\Bundle\QueryResourcesLoader\Contract\QueryResourcesLoaderInterface`.
16+
- Support for middleware in query resources loader.
17+
- Support for caching of query results.
18+
19+
### Deprecated
20+
21+
- `RunOpenCode\Bundle\QueryResourcesLoader\Contract\ManagerInterface` is deprecated and will be removed in version 9.
22+
- `RunOpenCode\Bundle\QueryResourcesLoader\Contract\ExecutorInterface` is deprecated and will be removed in version 9.
23+
- No support for `iterate()` method in `ManagerInterface`.
24+
25+
### Removed
26+
27+
- Support for iterating over records/tables in library.

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ application that deals with reporting.
3030
You can control transaction isolation level for current statements within transaction.
3131
- **Distributed transactions**. You can execute multiple queries within same transaction against different databases. If
3232
- **Caching**. You can cache your query results, so they are not loaded from database on each execution.
33+
- **Middlewares**. You can use middlewares to manipulate query before execution, or to manipulate result after
34+
execution. You can switch to other database if query fails, you can add monitoring, logging, load balancing on several
35+
databases, etc...
3336

3437
Read the documentation [here](docs/index.md).
3538

@@ -141,5 +144,3 @@ For other details about this bundle, as well as for tips on how to use it, read
141144
## TODO
142145

143146
- Add profiling for middlewares and query execution.
144-
- Add changelog.
145-
- Improve documentation.

docs/doctrine-dbal-executor-result.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ for more details.
2626

2727
Note that `ExecutionResultInterface` implements `\Traversable` and `\Countable`.
2828

29-
[<< Using manager](using-manager.md) | [Table of contents](index.md) | [Transaction support >>](transactions.md)
29+
[<< Twig support](legacy-support) | [Table of contents](index.md) | [Transaction support >>](transactions.md)

docs/faq.md

+11
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,16 @@ That being said, `dmaicher/doctrine-test-bundle`tracks transactions of `Connecti
1818
`START TRANSACTION` statement in your query, `dmaicher/doctrine-test-bundle` is not able to roll back them, because
1919
those are not explicitly tracked by `Connection` object.
2020

21+
## Legacy support
22+
23+
Prior to version 8, main interface of the library was
24+
`RunOpenCode\Bundle\QueryResourcesLoader\Contract\ManagerInterface`. This interface is replaced with
25+
`RunOpenCode\Bundle\QueryResourcesLoader\Contract\QueryResourcesLoaderInterface` which should be used from now on.
26+
27+
However, to support gradual migration, interface `ManagerInterface` is still available and can be used, but without
28+
`iterate()` method which is not supported in legacy interface. API for iterating over records/tables will not be
29+
introduced in future versions as part of this library.
30+
31+
Support for `ManagerInterface` will be removed in version 9.
2132

2233
[FAQ](faq.md) | [Table of contents](index.md)

docs/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ of entities first, and then use those identifiers to fetch entities themselves.
1616

1717
- [Introduction](introduction.md)
1818
- [Proposed solution](proposed-solution.md)
19-
- [Using manager](using-manager.md)
19+
- [Using manager](legacy-support)
2020
- [Twig support](twig-support.md)
2121
- [DoctrineDbalExecutorResult](doctrine-dbal-executor-result.md)
2222
- [Transaction support](transactions.md)

docs/using-manager.md

-174
This file was deleted.

0 commit comments

Comments
 (0)