You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							33 lines
						
					
					
						
							412 B
						
					
					
				
			
		
		
	
	
							33 lines
						
					
					
						
							412 B
						
					
					
				| 'use strict';
 | |
| 
 | |
| let collection;
 | |
| let cursor;
 | |
| let db;
 | |
| 
 | |
| function loadCollection() {
 | |
|   if (!collection) {
 | |
|     collection = require('./collection');
 | |
|   }
 | |
|   return collection;
 | |
| }
 | |
| 
 | |
| function loadCursor() {
 | |
|   if (!cursor) {
 | |
|     cursor = require('./cursor');
 | |
|   }
 | |
|   return cursor;
 | |
| }
 | |
| 
 | |
| function loadDb() {
 | |
|   if (!db) {
 | |
|     db = require('./db');
 | |
|   }
 | |
|   return db;
 | |
| }
 | |
| 
 | |
| module.exports = {
 | |
|   loadCollection,
 | |
|   loadCursor,
 | |
|   loadDb
 | |
| };
 |