Skip to content

Commit 0456e7a

Browse files
authored
Merge pull request #204 from utopia-php/mongo-repo
Mongo repo
2 parents 08c5215 + 88a2621 commit 0456e7a

13 files changed

Lines changed: 274 additions & 1108 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ loader.php
88
/bin/view/results/
99
.vscode
1010
.vscode/*
11-
11+
database.sql
1212
## - Oh Wess!
1313
Makefile
1414
.envrc

composer.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,23 @@
2525
"php": ">=8.0",
2626
"ext-pdo": "*",
2727
"ext-redis": "*",
28-
"ext-mongodb": "*",
2928
"utopia-php/framework": "0.*.*",
3029
"utopia-php/cache": "0.6.*",
31-
"mongodb/mongodb": "1.8.0"
30+
"utopia-php/mongo": "dev-shmuel.1 as 0.0.1",
31+
"ext-mongodb": "*"
3232
},
3333
"require-dev": {
34+
"laravel/pint": "1.2.*",
3435
"fakerphp/faker": "^1.14",
3536
"phpunit/phpunit": "^9.4",
3637
"swoole/ide-helper": "4.8.0",
3738
"utopia-php/cli": "^0.11.0",
3839
"vimeo/psalm": "4.0.1"
39-
}
40+
},
41+
"repositories": [
42+
{
43+
"type": "git",
44+
"url": "https://github.com/utopia-php/mongo"
45+
}
46+
]
4047
}

composer.lock

Lines changed: 151 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"preset": "psr12"
3+
}

src/Database/Adapter/MariaDB.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@ public function create(string $name): bool
5454
* Optionally check if collection exists in Database
5555
*
5656
* @param string $database
57-
* @param string $collection
57+
* @param string|null $collection
5858
* @return bool
5959
* @throws Exception
60-
* @throws PDOException
6160
*/
6261
public function exists(string $database, ?string $collection): bool
6362
{

0 commit comments

Comments
 (0)