Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 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
2fc5cd0
Merge branch 'main' of github.com:utopia-php/database into feat-mongo…
shimonewman Aug 3, 2025
deb0f42
sync with main
shimonewman Aug 3, 2025
76de606
Merge branch 'fix-encode-permissions' of github.com:utopia-php/databa…
shimonewman Aug 4, 2025
9ac830b
Add getIdAttributeType method to Mongo adapter and update tests for I…
shimonewman Aug 5, 2025
f24587c
Update composer.lock to reflect version upgrades for symfony/http-cli…
shimonewman Aug 5, 2025
705ad29
Merge branch 'main' of github.com:utopia-php/database into feat-mongo…
shimonewman Aug 5, 2025
bae61b9
Fix mongo shared tables for v2
abnegate Aug 5, 2025
ba515d5
Convert sequence values to ObjectId instances in Mongo adapter
shimonewman Aug 5, 2025
9cef3fa
Merge branch 'feat-mongo-tmp' of github.com:utopia-php/database into …
shimonewman Aug 6, 2025
aa2f3ff
Merge branch 'main' of github.com:utopia-php/database into feat-mongo…
shimonewman Aug 6, 2025
e0ed053
composer
shimonewman Aug 6, 2025
c49619b
composer
shimonewman Aug 6, 2025
d84583f
Merge branch 'feat-mongo-tmp' of github.com:utopia-php/database into …
shimonewman Aug 6, 2025
a096447
Merge pull request #649 from utopia-php/feat-mongo-shared-tables-v2
shimonewman Aug 6, 2025
3463d81
Update MongoDB adapter to remove null keys from records and adjust co…
shimonewman Aug 7, 2025
d2d3f9c
Comment out MongoDB Client path in docker-compose and remove unnecess…
shimonewman Aug 7, 2025
9d08a39
Merge pull request #654 from utopia-php/feat-mongo-remove-null-strip
shimonewman Aug 7, 2025
e7de12a
Update return type of getTenantFilters method in Mongo adapter to inc…
shimonewman Aug 7, 2025
dc17aef
Merge branch 'feat-mongo-tmp' of https://github.com/utopia-php/databa…
shimonewman Aug 7, 2025
003b383
Enhance Mongo adapter to support partial filters for unique and key i…
shimonewman Aug 10, 2025
0df4368
Add comment to clarify object reference preservation in Mongo adapter
shimonewman Aug 10, 2025
715f74c
Update composer.json and composer.lock to use dev-feat-partial-filter…
shimonewman Aug 11, 2025
6099631
Update Key validator to support MongoDB IDs by increasing maximum len…
shimonewman Aug 11, 2025
7518652
Refactor convertQueries method in Database class to improve query pro…
shimonewman Aug 13, 2025
44963e0
Refactor attribute filtering in Mongo adapter to utilize internal key…
shimonewman Aug 13, 2025
2ac6b4b
Refactor Mongo adapter exception handling to centralize error process…
shimonewman Aug 17, 2025
74cd59d
Update Mongo adapter to support UUID7 as the ID attribute type. Intro…
shimonewman Aug 19, 2025
0cbd6bb
Refactor attribute handling in Mongo adapter to ensure consistent key…
shimonewman Aug 19, 2025
641980d
Merge pull request #672 from utopia-php/feat-mongo-tmp-with-uuid7
shimonewman Aug 26, 2025
9999c74
Merge branch 'main' of github.com:utopia-php/database into feat-mongo…
shimonewman Aug 26, 2025
99aba5a
sync with main
shimonewman Aug 27, 2025
c049e24
Merge branch 'main' of github.com:utopia-php/database into feat-mongo…
shimonewman Aug 27, 2025
7420d2c
Refactor Mongo adapter methods to accept Document type for collection…
shimonewman Aug 27, 2025
314d4b0
Add new methods for document casting and UTC datetime handling in Poo…
shimonewman Aug 27, 2025
fdc667b
Add support for internal casting and UTC datetime handling in SQL ada…
shimonewman Aug 27, 2025
193a411
Enhance Mongo adapter's find and count methods to support cursor pagi…
shimonewman Aug 31, 2025
7b9e2f7
composer
shimonewman Aug 31, 2025
75f9704
Remove unused exception documentation from createAttribute method in …
shimonewman Sep 7, 2025
8017dc5
Add parameter documentation for index attribute types in Mongo adapter
shimonewman Sep 7, 2025
e2b1856
Update index attribute types in Mongo adapter to use associative arra…
shimonewman Sep 7, 2025
285f327
Update Key validator to limit length to 36 characters for improved Mo…
shimonewman Sep 8, 2025
1f7faa6
Merge branch 'main' of github.com:utopia-php/database into feat-mongo…
shimonewman Sep 8, 2025
1577a23
Merge remote-tracking branch 'origin/feat-mongo-tmp-pulls' into feat-…
shimonewman Sep 11, 2025
1b6f0af
sync with main
shimonewman Sep 11, 2025
34a6001
dding mongo to tests workflow
shimonewman Sep 11, 2025
8f662ea
adding mongo to tests workflow
shimonewman Sep 11, 2025
fc2871f
adding mongo to tests workflow
shimonewman Sep 11, 2025
4d84e6c
Refactor database cursor handling and update docker-compose for Mongo…
shimonewman Sep 11, 2025
aac79fe
Comment out the testFindNotBetween method in DocumentTests.php to tem…
shimonewman Sep 11, 2025
c967e72
linter
shimonewman Sep 11, 2025
fb69bed
Update dependencies in composer.json and composer.lock, including upg…
shimonewman Sep 11, 2025
b5661ad
Merge branch 'main' of github.com:utopia-php/database into feat-mongo…
shimonewman Sep 14, 2025
f3c4f54
Merge remote-tracking branch 'origin/feat-mongo-tmp-pulls' into feat-…
shimonewman Sep 14, 2025
23da2a8
Enhance Mongo adapter: added 'required' parameter to updateAttribute …
shimonewman Sep 14, 2025
15c04b9
linter
shimonewman Sep 14, 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: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,14 @@ jobs:
matrix:
adapter:
[
MongoDB,
MariaDB,
MySQL,
Postgres,
SQLite,
Mirror,
Pool,
SharedTables/MongoDB,
SharedTables/MariaDB,
SharedTables/MySQL,
SharedTables/Postgres,
Expand Down
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.6.0"
},
"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