Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-php-library
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
mongo-php-library
Commits
b51e1b3c
Commit
b51e1b3c
authored
Mar 18, 2015
by
Jeremy Mikola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PHPLIB-65: Prototypes for database drop methods
parent
4b0d5ad0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
3 deletions
+26
-3
Client.php
src/Client.php
+14
-2
Database.php
src/Database.php
+12
-1
No files found.
src/Client.php
View file @
b51e1b3c
...
...
@@ -2,9 +2,10 @@
namespace
MongoDB
;
use
MongoDB\Driver\Manager
;
use
MongoDB\Database
;
use
MongoDB\Collection
;
use
MongoDB\Database
;
use
MongoDB\Driver\Manager
;
use
MongoDB\Driver\Result
;
class
Client
{
...
...
@@ -29,6 +30,17 @@ class Client
$this
->
manager
=
new
Manager
(
$uri
,
$options
,
$driverOptions
);
}
/**
* Drop a database.
*
* @param string $databaseName
* @return Result
*/
public
function
dropDatabase
(
$databaseName
)
{
// TODO
}
/**
* Select a database
*
...
...
src/Database.php
View file @
b51e1b3c
...
...
@@ -2,8 +2,9 @@
namespace
MongoDB
;
use
MongoDB\Driver\Manager
;
use
MongoDB\Collection
;
use
MongoDB\Driver\Manager
;
use
MongoDB\Driver\Result
;
class
Database
{
...
...
@@ -46,6 +47,16 @@ class Database
// TODO
}
/**
* Drop this database.
*
* @return Result
*/
public
function
drop
()
{
// TODO
}
/**
* Select a specific collection in this database
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment