Skip to content
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c651c22
transactions support
shimonewman Jul 14, 2025
b262c21
remove replica-set file
shimonewman Jul 14, 2025
619176f
Merge branch 'feat-mongo-2' of github.com:utopia-php/database into mo…
shimonewman Jul 14, 2025
ba11cba
cleanup
shimonewman Jul 15, 2025
fb832fa
Merge branch 'mongo-transactions' of https://github.com/utopia-php/da…
shimonewman Jul 21, 2025
72c903e
clenup
shimonewman Jul 21, 2025
8421a34
sync with feat-mongo-2
shimonewman Jul 21, 2025
8cd9ac4
updates
shimonewman Jul 21, 2025
b131e4e
Merge branch 'mongo-transactions' of https://github.com/utopia-php/da…
shimonewman Jul 21, 2025
142d167
updates
shimonewman Jul 21, 2025
e6b2bba
updates
shimonewman Jul 21, 2025
ec67b59
updates
shimonewman Jul 21, 2025
0895f84
Merge branch 'feat-mongo-2' of github.com:utopia-php/database into mo…
shimonewman Jul 24, 2025
1760ea5
sunc against upsert pr
shimonewman Jul 24, 2025
9edd05f
Update composer.lock and docker-compose.yml for dependency versions a…
shimonewman Jul 24, 2025
79020e6
Merge branch 'feat-mongo-2' of github.com:utopia-php/database into mo…
shimonewman Jul 27, 2025
85748b7
sync with feat-mongo-2
shimonewman Jul 27, 2025
4b24c13
sync with feat-mongo-2
shimonewman Jul 27, 2025
5bcf41e
Refactor MongoDB configuration in docker-compose and enhance transact…
shimonewman Jul 27, 2025
666affb
Merge branch 'feat-mongo-2' of github.com:utopia-php/database into mo…
shimonewman Jul 27, 2025
64fc966
Merge remote-tracking branch 'origin/mongo-transactions' into mongo-t…
shimonewman Jul 27, 2025
3848103
Merge branch 'feat-mongo-2' of github.com:utopia-php/database into mo…
shimonewman Jul 29, 2025
f498894
Update docker-compose.yml to add a note about manual initiation of th…
shimonewman Jul 29, 2025
2b65727
Update src/Database/Adapter/Mongo.php
shimonewman Aug 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"utopia-php/framework": "0.33.*",
"utopia-php/cache": "0.13.*",
"utopia-php/pools": "0.8.*",
"utopia-php/mongo": "dev-feat-bulk-writes as 0.3.1"
"utopia-php/mongo": "dev-feat-mongo-transactions as 0.3.1"
},
"require-dev": {
"fakerphp/faker": "1.23.*",
Expand Down
28 changes: 14 additions & 14 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,19 @@ services:
- database
ports:
- "9706:27017"
volumes:
- ./mongo-keyfile:/etc/mongo-keyfile:ro
- mongo-data:/data/db
environment:
MONGO_INITDB_DATABASE: utopia_testing
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: password
MONGO_INITDB_ROOT_PASSWORD: password
command: >
mongod --replSet rs0
--auth
--keyFile /etc/mongo-keyfile
# Manyally initate the replica set
#docker compose exec mongo mongosh admin -u root -p password --eval 'rs.initiate({_id: "rs0", members: [{_id: 0, host: "mongo:27017"}]})'

mongo-express:
image: mongo-express
Expand Down Expand Up @@ -146,5 +155,7 @@ services:
networks:
- database

volumes:
mongo-data:
networks:
database:
16 changes: 16 additions & 0 deletions mongo-keyfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ydIuYSvU/9QLt7fkH32IdXbP2z2+w+fzSEoolW8Q1Z8nLhRyrZF0Zq7a0KzeNI7K
gPIl1ikI6ob6h0+RxYmGeOOUjjkcBlkvYrmABDKsRipTkTTp4z0fUBTIUJV0lVvs
N9+VpM0/pLLIhI8jb38aa7pmsoufBQ3uiNR68ZFykPqzZQ4d5VfMqfZk7z3dpFlh
DURPOOG0HAFe68MLXVFYdaHGW4yomuTPrpzWSiUhFAPFEBYg4elARQc4CaiinFds
SQi/SrUsYMGODPr+on9/lboia/SInaSP+dzDqpsbL29atvIVHtU29RlPJdZ2V1ub
Oe2O1xN9F59TtjNUgDiAtMGKTMS/0S1mbPC6Og5JAR7U4xZ7/6S5n3+p0RjYyTlH
fhssJ7pc/bveN6mShNrsIKK0Z50YYjablzm07EDJYhfEWMG5Wu1AvEVqEH68ioDl
JL5QO63A2bXvMN7dXS69+E0hHn6xaZYu+CnKedvgWdyhraCT1Q01ZyDyv2y7isGD
1BAlNLlt+cPMCitETcxZne+JHdkL/mDKffHUPM4Drtzchg4DbiG49uC9Ib7zTws+
NcburXY+9B8j7WN7ZHXhiB7/OWJ/IHJCZTdKz70mEPH4AHoRFpZNM5eMnYxYdbQD
40MhAS7fuOYhtFIQiQ+SCeFMucE3KYvp1JpTVQwT4SNrIlHPqfPn5xFBcgDjhvwT
hHJCgXP4HrRuf47Ta6kHy2UFQ7r5JOqSZSOFwP+tUyfhjEB5ZWJ1qCUZxFagoc9A
//9SoyulZwCxEr2ijmes1Nzv56hSTjYb6pPjFWd92G87w+VZv4R/vF5nwcYUyuIS
iQWPs/kOzb4NeJW24lNzR2zH2BsJt3OI+BFY64cc8O0o6EtFWcoabwyJYKe6RXPX
0S4ngcnGzRP+tVa6LsrjAYrNpmZDrP9x93pXQHfByTS2oSaI1eGeAagFTu/HS2kC
uCJ0HfH99sRSgJ1Ab+2C8G8305meDAbtdCtvl/1anPnV6ISy
1 change: 0 additions & 1 deletion src/Database/Adapter/MariaDB.php
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,6 @@ public function createOrUpdateDocuments(
$bindValues = [];
$documentIds = [];
$documentTenants = [];

foreach ($changes as $change) {
$document = $change->getNew();
$attributes = $document->getAttributes();
Expand Down
Loading
Loading