Doctrine transaction log implementation - 90%#6
Conversation
build.xml
Outdated
There was a problem hiding this comment.
why use an underscore ? _unittestPostgresTLog is it because you dont want this target to be called directly by a developer? if thats what you actually want to achieve change the target name to -unittestPostgresTLog the dash makes it impossible for someone to call ant -unittestPostgresTLog directly.
|
👍 i like this approach. I noticed a few commented out bits of code in one of the Doctrine classes to do with MongoDates - I'm guessing they will be removed/replaced at some point. One final thing - is it even worth having a version > 5.3 in there? Can we make the assumption that it just will be on 5.3? If it's going to make it into prod before the 5.3 kit is ready AND we need to update Tripod then it's worth it - otherwise possibly not. |
|
Thanks for the comments. The commented out code in the Doctrine classes are actually the equiv MongoTransactionLog code to remind me what it does until I have fully implemented Doctrine, after which I'll remove. On the 5.3 bit, this still needs to work against 5.2 until we've finally migrated, so if we want to merge this to master before that happens we'll need the version checks. Goes without saying to configure and use against the Doctrine version you'd need to be running 5.3. |
There was a problem hiding this comment.
Type hinting for the arrays in the signature?
|
So far, I really like the direction of this! |
|
Thanks! |
This allows us to use any Doctrine-compatible db for the tlog (perversely, MongoDB included). The obvious target would be a postgressql, seeing as MongoDB does not work well as an append-(mostly) db
How it's done
Todo:
Get the build file to actually set up the Postgres DB for you (will fail unless you have a database called tlog with a user of chris ATM)