Skip to content

[Request] Add support for db in GridFS functions #139

Closed
@Pk13055

Description

@Pk13055

The addition of an optional database param in the gridFS functions would be quite helpful for multi-db based applications.

I guess a simple addition of db :str=None on this line would be enough; with changes to this line from:

storage = GridFS(self.db, base)

to:

storage = GridFS(self.cx[db] if db else self.db, base)

Similar changes would be needed in the save_file function here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions