-
Notifications
You must be signed in to change notification settings - Fork 58
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
Projections Update #30
Conversation
Changes Unknown when pulling 9678d9c on projections_update into ** on master**. |
/cc @basz @oqq @sandrokeil @bweston92 please review |
Changes Unknown when pulling 879f2bb on projections_update into ** on master**. |
* @var int | ||
*/ | ||
private $eventCounter = 0; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$lockTimeoutMs
and $eventCounter
is never used!?
|
||
namespace Prooph\EventStore\PDO\Projection; | ||
|
||
use PDO; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use PDO
is never used. Please remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's used in the constructor
The parameter type description here |
Using always camel case looks better to me e.g. |
@codeliner @sandrokeil @oqq about naming: I am not sure about the last commit, the base class in PHP is PDO, not Pdo. Also Doctrine uses this f.e. https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MySQL57Platform.php |
There are several comments to change this in php code and also in doctrine. Especially in doctrine code, cuz the PDO prefix not fits to PSR-1. I am for Pdo instead of PDO since 1 year for that PSR reasons and have used PDO before. But it´s a matter of taste, so no hard opinion from me. |
Changes Unknown when pulling e8bb194 on projections_update into ** on master**. |
adds missing phpunit group annotations to container test classes
Changes Unknown when pulling 6371114 on projections_update into ** on master**. |
MySQL Database Scheme improvements
updates minimum MySQL server version to 5.7.9 in README
Changes Unknown when pulling 4710a1e on projections_update into ** on master**. |
Changes Unknown when pulling 2d57e0c on projections_update into ** on master**. |
Changes Unknown when pulling 2d57e0c on projections_update into ** on master**. |
SQL Query improvements
Can it be explained why we are coupling a read model with the event store? |
@bweston92 I don't get your question. The read model is a projection of the recorded events. So in order to create a readmodel, you have to get a stream of events and process it. Nothing else. The readmodel itself has no dependency on the event store. The projector needs to have knowledge about the event store and the read model, in order to create it. |
@prolic sorry I just seen read model and projection key words in the event store. |
Changes Unknown when pulling 62c7a8f on projections_update into ** on master**. |
No description provided.