Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
7bd27cd
re-adding mongodb adapter
shimonewman Jun 25, 2025
865b508
re-adding mongodb adapter
shimonewman Jun 29, 2025
95e0ea6
re-adding mongodb adapter
shimonewman Jun 30, 2025
d599a38
Merge branch 'fix-cursor' of github.com:utopia-php/database into feat…
shimonewman Jun 30, 2025
95220c1
pull cursor
fogelito Jun 30, 2025
9ddfd8c
Merge remote-tracking branch 'origin/feat-mongo-2' into feat-mongo-2
shimonewman Jun 30, 2025
1e9202d
Fix tests
fogelito Jun 30, 2025
7b54377
re-adding mongodb adapter
shimonewman Jun 30, 2025
9d52068
re-adding mongodb adapter
shimonewman Jul 3, 2025
f2bf9dc
clean up
shimonewman Jul 9, 2025
3800e8e
clean up
shimonewman Jul 9, 2025
2d4b9d8
Merge remote-tracking branch 'origin/feat-mongo-2' into feat-mongo-2
shimonewman Jul 9, 2025
4ecc004
clean up
shimonewman Jul 9, 2025
f0a9d05
linter
shimonewman Jul 10, 2025
c6298f0
replaced bulkUpsert() with upsert() call
shimonewman Jul 21, 2025
1f21be3
Merge branch 'feat-mongo-2' of https://github.com/utopia-php/database…
shimonewman Jul 21, 2025
9a8faad
rollback PHP_MONGODB_VERSION
shimonewman Jul 21, 2025
ecc831f
remove scrap
shimonewman Jul 21, 2025
86bf4ff
updates
shimonewman Jul 21, 2025
d9f5e3b
Merge branch 'feat-mongo-2' of https://github.com/utopia-php/database…
shimonewman Jul 22, 2025
645f5b5
Implement internal casting methods in Mongo and SQL adapters; update …
shimonewman Jul 24, 2025
0975fe5
Refactor casting methods in Database adapter; rename internalCastingF…
shimonewman Jul 24, 2025
7d976e6
updates
shimonewman Jul 24, 2025
7b7c4f2
Update utopia-php/mongo dependency to version 0.4.* in composer.json …
shimonewman Jul 24, 2025
fd0b29b
Update utopia-php/mongo dependency to version 0.5.* in composer.json …
shimonewman Jul 26, 2025
cef98a6
Merge branch 'main' of github.com:utopia-php/database into feat-mongo-2
shimonewman Jul 27, 2025
10df727
sync with main
shimonewman Jul 27, 2025
57e323d
Refactor getSequences method in Mongo adapter to accept an array of d…
shimonewman Jul 27, 2025
fd5e24c
Enhance sequence retrieval in Mongo adapter by creating temporary doc…
shimonewman Jul 27, 2025
b373d1d
Clean up whitespace in Database and Mongo adapter files, and in test …
shimonewman Jul 27, 2025
1e27b34
Add casting methods and support checks in Pool adapter; update Mongo …
shimonewman Jul 27, 2025
bdb38b3
Refactor Mongo adapter to enhance datetime handling by adding type ch…
shimonewman Jul 27, 2025
53a458f
Comment out the Mongo Client path in docker-compose.yml to prevent po…
shimonewman Jul 27, 2025
8a77735
Merge branch 'main' of github.com:utopia-php/database into feat-mongo-2
shimonewman Jul 28, 2025
0e2f54c
sync with main
shimonewman Jul 28, 2025
598f6b5
Merge remote-tracking branch 'origin/feat-mongo-2' into feat-mongo-2
shimonewman Jul 28, 2025
0b36e59
Merge branch 'main' of github.com:utopia-php/database into feat-mongo-2
shimonewman Jul 28, 2025
5429a88
Update MongoDB adapter to support skipping permissions during documen…
shimonewman Jul 28, 2025
2bc2d0c
Merge branch 'feat-mongo-2' of https://github.com/utopia-php/database…
shimonewman Jul 28, 2025
796584f
Refactor MongoDB adapter to improve document processing and permissio…
shimonewman Jul 29, 2025
bf9f705
Refactor MongoDB adapter by removing unused permission handling code …
shimonewman Jul 29, 2025
b7f74af
Refactor MongoDB adapter by removing unused arrays for document IDs a…
shimonewman Jul 29, 2025
5ce323b
Update Docker configuration by commenting out the Client.php mapping …
shimonewman Jul 29, 2025
5a5be70
Refactor createOrUpdateDocuments method in Mongo adapter to improve a…
shimonewman Aug 5, 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
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ FROM php:8.3.19-cli-alpine3.21 AS compile

ENV PHP_REDIS_VERSION="6.0.2" \
PHP_SWOOLE_VERSION="v5.1.7" \
PHP_XDEBUG_VERSION="3.4.2"

PHP_XDEBUG_VERSION="3.4.2" \
PHP_MONGODB_VERSION="1.21.1"
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN \
apk update \
&& apk add --no-cache \
RUN apk update && apk add --no-cache \
postgresql-libs \
postgresql-dev \
make \
Expand All @@ -35,9 +33,11 @@ RUN \
linux-headers \
docker-cli \
docker-cli-compose \
&& docker-php-ext-install opcache pgsql pdo_mysql pdo_pgsql \
&& apk del postgresql-dev \
&& rm -rf /var/cache/apk/*
&& pecl install mongodb-$PHP_MONGODB_VERSION \
&& docker-php-ext-enable mongodb \
&& docker-php-ext-install opcache pgsql pdo_mysql pdo_pgsql \
&& apk del postgresql-dev \
&& rm -rf /var/cache/apk/*

# Redis Extension
FROM compile AS redis
Expand Down
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"ext-mbstring": "*",
"utopia-php/framework": "0.33.*",
"utopia-php/cache": "0.13.*",
"utopia-php/pools": "0.8.*"
"utopia-php/pools": "0.8.*",
"utopia-php/mongo": "0.5.*"
},
"require-dev": {
"fakerphp/faker": "1.23.*",
Expand All @@ -52,7 +53,9 @@
},
"suggests": {
"ext-redis": "Needed to support Redis Cache Adapter",
"ext-pdo": "Needed to support MariaDB, MySQL or SQLite Database Adapter"
"ext-pdo": "Needed to support MariaDB, MySQL or SQLite Database Adapter",
"mongodb/mongodb": "Needed to support MongoDB Database Adapter"

},
"config": {
"allow-plugins": {
Expand Down
Loading