-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
171 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
sudo apt-get -y remove --purge \ | ||
mysql-server-5.6 \ | ||
mysql-server-core-5.6 \ | ||
mysql-client-5.6 \ | ||
mysql-client-core-5.6 | ||
sudo rm -rf /var/lib/mysql | ||
sudo apt-get install software-properties-common | ||
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db | ||
sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://download.nus.edu.sg/mirror/mariadb/repo/10.2/ubuntu trusty main' | ||
sudo apt-get update | ||
sudo apt-get install mariadb-server |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,19 @@ | ||
# Setup | ||
|
||
The PDO SnapshotStore is currently tested with 2 backends, MySQL and Postgres. | ||
The PDO SnapshotStore is currently tested with 3 backends, MariaDB, MySQL and Postgres. | ||
|
||
In order to use it, you need have a database and create one (or multitple) snapshot tables. | ||
|
||
For MySQL see: `scripts/mysql_snapshot_table.sql` | ||
For MySQL and MariaDB see: `scripts/mysql_snapshot_table.sql` | ||
For Postgres see: `scripts/postgres_snapshot_table.sql` | ||
|
||
## Disable transaction handling | ||
|
||
You can configure the snapshot store to disable transaction handling completely. In order to do this, set the last parameter | ||
in the constructor to true (or configure your interop config factory accordingly, key is `disable_transaction_handling`). | ||
|
||
Enabling this feature will disable all transaction handling and you have to take care yourself to start, commit and rollback | ||
transactions. | ||
|
||
Note: This could lead to problems using the snapshot store, if you did not manage to handle the transaction handling accordingly. | ||
This is your problem and we will not provide any support for problems you encounter while doing so. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<phpunit | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd" | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
bootstrap="vendor/autoload.php" | ||
> | ||
<testsuite name="Prooph PDO Snapshot Store Test Suite"> | ||
<directory>./tests</directory> | ||
</testsuite> | ||
|
||
<filter> | ||
<whitelist> | ||
<directory>./src/</directory> | ||
</whitelist> | ||
</filter> | ||
|
||
<php> | ||
<env name="db_type" value="pdo_mysql"/> | ||
<env name="db_host" value="127.0.0.1"/> | ||
<env name="db_username" value="root"/> | ||
<env name="db_password" value=""/> | ||
<env name="db_name" value="snapshot_tests"/> | ||
<env name="db_port" value="3306"/> | ||
<!-- \PDO::ERRMODE_SILENT --> | ||
<env name="DB_ATTR_ERRMODE" value="0"/> | ||
</php> | ||
</phpunit> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters