Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
7025fab
Zoo Tests
fogelito Aug 3, 2025
b16af0f
stopOnFailure
fogelito Aug 3, 2025
644ed82
Merge pull request #648 from utopia-php/fix-dec-min-0
abnegate Aug 5, 2025
72c2a9c
Revert "Merge pull request #627 from utopia-php/disable-array-index-m…
abnegate Aug 5, 2025
79ed2c9
getSeuqnce null
fogelito Aug 6, 2025
32c3ff4
Add support for negation queries in database adapters
cursoragent Aug 7, 2025
28785c2
Add support for new "not" query types in database queries
cursoragent Aug 7, 2025
540089d
Add support for new NOT query types in database library
cursoragent Aug 7, 2025
daf95d0
Add comprehensive E2E tests for new NOT query types
cursoragent Aug 7, 2025
bb4bbe7
Fix E2E test failures for new NOT query types
cursoragent Aug 7, 2025
219ed5f
Fix testFindNotContains error message expectation
cursoragent Aug 7, 2025
a66ced7
Fix code formatting issues
cursoragent Aug 7, 2025
27ebb27
Fix trailing whitespace in MariaDB adapter
cursoragent Aug 7, 2025
b1db808
Fix PostgreSQL notContains array query syntax
cursoragent Aug 7, 2025
20233dc
Add comprehensive edge case testing for NOT query types
cursoragent Aug 7, 2025
4265154
Fix CodeQL issue: wrap single value in array for Query::equal()
cursoragent Aug 7, 2025
760b579
Fix test failures in NOT query E2E tests
cursoragent Aug 7, 2025
46e8a68
Merge branch 'main' of github.com:utopia-php/database into zoo-relati…
fogelito Aug 7, 2025
828acd3
Merge pull request #652 from utopia-php/not-query-types-implementation
abnegate Aug 7, 2025
c3e29c5
Add date-based query helpers for createdAt and updatedAt
cursoragent Aug 7, 2025
c7975f9
Change parameter name from $isoDateString to $value for consistency
cursoragent Aug 7, 2025
a8ab3a7
Merge pull request #653 from utopia-php/add-date-query-wrappers
abnegate Aug 7, 2025
8581950
Check data
fogelito Aug 7, 2025
1fec267
Merge branch 'main' of github.com:utopia-php/database into zoo-relati…
fogelito Aug 7, 2025
7241f73
Run tests
fogelito Aug 7, 2025
2312756
Stop on fail
fogelito Aug 7, 2025
3e0cc09
Remove comment
fogelito Aug 7, 2025
9514f56
Run tests
fogelito Aug 10, 2025
d78413f
Merge pull request #655 from utopia-php/zoo-relations-tests
abnegate Aug 11, 2025
a0c3bad
Add selective filter skipping to Database class
cursoragent Aug 11, 2025
91d1140
Refactor skipFilters method and remove unnecessary comments
cursoragent Aug 11, 2025
d792eb0
Add skipFilters method to bypass database filters conditionally
cursoragent Aug 11, 2025
768306f
Refactor skipFilters method to improve null filter handling and excep…
cursoragent Aug 11, 2025
a76fcb6
Fix stan
abnegate Aug 11, 2025
39c6140
Merge pull request #657 from utopia-php/feat/skipfilters-optional-list
abnegate Aug 11, 2025
cc10b50
Enable
abnegate Aug 11, 2025
61dd323
Merge pull request #658 from utopia-php/revert-arrayindex
abnegate Aug 11, 2025
a502794
Merge branch 'main' of github.com:utopia-php/database into get-sequen…
fogelito Aug 11, 2025
43aaba7
Merge pull request #657 from utopia-php/feat/skipfilters-optional-list
abnegate Aug 11, 2025
d9bf1e0
Fix missing throw on no FTS on not search
abnegate Aug 11, 2025
eaa4e27
Merge pull request #660 from utopia-php/fix-catch-not-search
abnegate Aug 11, 2025
2259743
added working of spatial attribute in mariadb and database
ArnabChatterjee20k Aug 12, 2025
01e7e58
Refactor spatial data handling and validation
ArnabChatterjee20k Aug 12, 2025
fd21384
updated queries
ArnabChatterjee20k Aug 12, 2025
75b6658
updated query for filter attributes
ArnabChatterjee20k Aug 12, 2025
e6e1c28
reverted postgres adapter
ArnabChatterjee20k Aug 12, 2025
e86a3f7
reverted postgresql
ArnabChatterjee20k Aug 12, 2025
3a9672a
added working postgres code implementation for the spatial attribute
ArnabChatterjee20k Aug 12, 2025
7a9bedb
Merge branch 'main' of github.com:utopia-php/database into get-sequen…
fogelito Aug 13, 2025
6509e43
add support for null values in spatial indexes across database adapters
ArnabChatterjee20k Aug 13, 2025
121fb71
add required parameter to createAttribute method across database adap…
ArnabChatterjee20k Aug 13, 2025
33f35f5
Merge pull request #650 from utopia-php/get-sequence-default
abnegate Aug 13, 2025
34a8e36
add spatial attributes support in database adapters and update relate…
ArnabChatterjee20k Aug 13, 2025
bdbe1c7
update spatial index handling to exclude tenant for GIST compatibilit…
ArnabChatterjee20k Aug 13, 2025
10c4ee4
Refactor code structure for improved readability and maintainability
ArnabChatterjee20k Aug 13, 2025
2011fb7
reverted tests
ArnabChatterjee20k Aug 13, 2025
c19ea30
Enhance spatial attributes handling by updating type hints and improv…
ArnabChatterjee20k Aug 13, 2025
7bed756
Invalid argument for invalid value
abnegate Aug 14, 2025
6b1054e
Reapply "Merge pull request #627 from utopia-php/disable-array-index-…
abnegate Aug 14, 2025
85f46c3
Sync
abnegate Aug 14, 2025
20998e2
Align
abnegate Aug 14, 2025
6af6a97
Add createOrUpdateDocuments method and filter hooks for document upserts
ArnabChatterjee20k Aug 15, 2025
139ee27
Refactor destination document handling and clean up after tests
ArnabChatterjee20k Aug 15, 2025
e194da3
Merge pull request #662 from utopia-php/0.71.x
abnegate Aug 15, 2025
c864ead
Enhance permission handling in SQL adapter and add tests for document…
ArnabChatterjee20k Aug 15, 2025
4fc1fb3
Merge pull request #663 from utopia-php/dat-610
abnegate Aug 15, 2025
1fbdacc
Merge remote-tracking branch 'upstream/main' into dat-610-fix-createD…
ArnabChatterjee20k Aug 15, 2025
1f0ec39
added testcases for mismatching for update and create bulk
ArnabChatterjee20k Aug 15, 2025
7c7af88
linting
ArnabChatterjee20k Aug 15, 2025
b9ba929
Merge pull request #664 from utopia-php/dat-610-fix-createDocuments-a…
abnegate Aug 15, 2025
7af404c
Remove support for VAR_GEOMETRY across database adapters and validato…
ArnabChatterjee20k Aug 18, 2025
258aea3
Add support for boundary inclusive contains in spatial adapters and u…
ArnabChatterjee20k Aug 18, 2025
7a74148
Add comprehensive tests for spatial collection creation and indexing
ArnabChatterjee20k Aug 18, 2025
2c4dc7c
Add support for spatial index order in database adapters and update r…
ArnabChatterjee20k Aug 18, 2025
8de2cd4
Add spatial index type check in MariaDB and Postgres adapters to prev…
ArnabChatterjee20k Aug 18, 2025
7071c4f
Updated find method signature to accept collection as a Document inst…
ArnabChatterjee20k Aug 19, 2025
59f2fcf
Updated updateDocuments method signature to accept document collectio…
ArnabChatterjee20k Aug 19, 2025
c4e3160
Updated createDocuments method signature to accept document collectio…
ArnabChatterjee20k Aug 19, 2025
92cac79
updated method signature of the createOrUpdateDocuments to use collec…
ArnabChatterjee20k Aug 19, 2025
9c1b3dd
updated method signature of getdocument to use document collection in…
ArnabChatterjee20k Aug 19, 2025
04de5fb
Updated method signature of createDocument to use the collection docu…
ArnabChatterjee20k Aug 19, 2025
86956e1
added missing support methods in the sqlite
ArnabChatterjee20k Aug 19, 2025
4518fb8
changed the method signature of update document and using collection …
ArnabChatterjee20k Aug 19, 2025
2359cd5
created an utility helper to get the spatial attributes everytime
ArnabChatterjee20k Aug 19, 2025
72d24b9
updated contains , not contains query type
ArnabChatterjee20k Aug 19, 2025
fb5d523
Nested convert queries
fogelito Aug 20, 2025
e4abb78
Nested convert queries
fogelito Aug 20, 2025
43f5c79
Add tests
fogelito Aug 20, 2025
678a8c1
Line
fogelito Aug 20, 2025
9ec4b3f
add hints
fogelito Aug 20, 2025
f74d93a
add hints
fogelito Aug 20, 2025
c2a21a0
composer check
fogelito Aug 20, 2025
1b91995
upated spatial tests to include more shape related tests
ArnabChatterjee20k Aug 20, 2025
6284aaa
Merge pull request #669 from utopia-php/nested-convert-queries
abnegate Aug 20, 2025
ea7d96d
updated geomtric tests
ArnabChatterjee20k Aug 20, 2025
6497f55
updated equal and not equal cases
ArnabChatterjee20k Aug 20, 2025
e01748a
removed equals, and notequals and now segregated spatial type query h…
ArnabChatterjee20k Aug 20, 2025
81b5e7e
added postgres docker file for installing the extension spearately
ArnabChatterjee20k Aug 20, 2025
c537ee2
centralised the wkt string to array formation and correct the typo
ArnabChatterjee20k Aug 20, 2025
0be3255
import of spatial validator
ArnabChatterjee20k Aug 20, 2025
f241333
* fixed the bug where other attributes were not included during the f…
ArnabChatterjee20k Aug 21, 2025
70dca9d
linting fix
ArnabChatterjee20k Aug 21, 2025
14cef5f
pr followups
ArnabChatterjee20k Aug 21, 2025
b398d8d
Added more e2e test cases for checking multiple shapes interaction in…
ArnabChatterjee20k Aug 21, 2025
ec1d2e0
added distance greater and distance less queries
ArnabChatterjee20k Aug 21, 2025
b1aa73a
added tests for distance and not distance
ArnabChatterjee20k Aug 21, 2025
f5e713b
linting fix
ArnabChatterjee20k Aug 21, 2025
da8accb
updated attribute size and precision point
ArnabChatterjee20k Aug 21, 2025
29b23bb
reverted pdo type
ArnabChatterjee20k Aug 21, 2025
07e7de7
reverted stmt execute
ArnabChatterjee20k Aug 21, 2025
670e8ef
Merge pull request #661 from ArnabChatterjee20k/spatial-attribute-sup…
abnegate Aug 21, 2025
5e4e4bd
added spatial attribute support for the sum, count methods
ArnabChatterjee20k Aug 26, 2025
1f70750
Merge pull request #670 from ArnabChatterjee20k/spatial-attribute-sup…
abnegate Aug 26, 2025
60b80de
update query terminology
ArnabChatterjee20k Aug 26, 2025
0c91b97
Merge pull request #671 from ArnabChatterjee20k/spatial-attribute-sup…
abnegate Aug 26, 2025
cffbfd6
updated distance query handling
ArnabChatterjee20k Aug 26, 2025
966c3cd
added missing return type
ArnabChatterjee20k Aug 26, 2025
9999c74
Merge branch 'main' of github.com:utopia-php/database into feat-mongo…
shimonewman Aug 26, 2025
653e19d
Merge pull request #673 from ArnabChatterjee20k/spatial-attribute-sup…
abnegate Aug 26, 2025
0b30244
added index validtor for spatial index
ArnabChatterjee20k Aug 26, 2025
88998ed
added index validator params
ArnabChatterjee20k Aug 26, 2025
0f72b9b
updated spatial index validation step
ArnabChatterjee20k Aug 26, 2025
99beaf1
Merge pull request #674 from ArnabChatterjee20k/spatial-attribute-sup…
abnegate 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
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
72 changes: 40 additions & 32 deletions composer.lock

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

16 changes: 13 additions & 3 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ services:
- ./dev/xdebug.ini:/usr/local/etc/php/conf.d/xdebug.ini
- /var/run/docker.sock:/var/run/docker.sock
- ./docker-compose.yml:/usr/src/code/docker-compose.yml
- ./vendor/utopia-php/mongo/src/Client.php:/usr/src/code/vendor/utopia-php/mongo/src/Client.php
#- ./vendor/utopia-php/mongo/src/Client.php:/usr/src/code/vendor/utopia-php/mongo/src/Client.php
environment:
PHP_IDE_CONFIG: serverName=tests

Expand All @@ -31,7 +31,11 @@ services:
- database

postgres:
image: postgres:16.4
build:
context: .
dockerfile: postgres.dockerfile
args:
POSTGRES_VERSION: 16
container_name: utopia-postgres
networks:
- database
Expand All @@ -40,9 +44,14 @@ services:
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
POSTGRES_DB: root

postgres-mirror:
image: postgres:16.4
build:
context: .
dockerfile: postgres.dockerfile
args:
POSTGRES_VERSION: 16
container_name: utopia-postgres-mirror
networks:
- database
Expand All @@ -51,6 +60,7 @@ services:
environment:
POSTGRES_USER: root
POSTGRES_PASSWORD: password
POSTGRES_DB: root

mariadb:
image: mariadb:10.11
Expand Down
7 changes: 7 additions & 0 deletions postgres.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM postgres:16

RUN apt-get update \
&& apt-get install -y --no-install-recommends \
postgresql-16-postgis-3 \
postgresql-16-postgis-3-scripts \
&& rm -rf /var/lib/apt/lists/*
Loading
Loading