File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -75,13 +75,12 @@ def wrapper(*args, **kwargs):
75
75
return wrapper
76
76
return decorator
77
77
78
- def dbname (db_ ):
78
+ def fullname (db_ ):
79
79
'''return host, port, database, and collection name of db'''
80
- host = db_ ._Collection__database ._Database__connection .host
81
- port = db_ ._Collection__database ._Database__connection .port
82
- database = db_ ._Collection__database ._Database__name
83
- collection = db_ .name
84
- return '%s:%d/%s.%s' % (host , port , database , collection )
80
+ host_ = db_ .database .connection .host
81
+ port_ = db_ .database .connection .port
82
+ fullname = db_ .full_name
83
+ return '%s:%s/%s' % (host_ , port_ , fullname )
85
84
86
85
def file2collection (file ):
87
86
'''sanitize a filename to use as a collection'''
You can’t perform that action at this time.
0 commit comments