Skip to content

Commit e13fe4a

Browse files
(DOCSP-11557, DOCSP-11559): Add db.getMongo, db.createCollection, db.createView
1 parent 3d7585f commit e13fe4a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

source/reference/methods.txt

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,17 @@ Database Methods
379379

380380
* - :method:`db.aggregate()`
381381

382-
- Runs admin/diagnostic pipeline which does not require an underlying collection.
382+
- Runs admin/diagnostic pipeline which does not require an
383+
underlying collection.
384+
385+
* - :method:`db.createCollection()`
386+
387+
- Creates a new collection or view.
388+
389+
* - :method:`db.createView()`
390+
391+
- Creates a view as the result of applying the specified
392+
aggregation pipeline to the source collection or view.
383393

384394
* - :method:`db.dropDatabase()`
385395

@@ -399,6 +409,10 @@ Database Methods
399409

400410
- Lists all collections and views in the current database.
401411

412+
* - :method:`db.getMongo()`
413+
414+
- Returns the current database connection.
415+
402416
* - :method:`db.getName()`
403417

404418
- Returns the name of the current database.

0 commit comments

Comments
 (0)