Skip to content

Feature request: Multiple connections #4

Closed
@mrusme

Description

@mrusme

Hi,

multiple mongdb connections from within one "mongodb" database connection definiton would be super-cool. The mongodb client library allows this:

mongodb://db1.example.net,db2.example.net:2500/?replicaSet=test

It would be really nice to have it configurable within the database.php:

    'mongodb' => array(
      'db1.example.net' => array(
        'host'     => 'db1.example.net',
        'port'     => 27017,
        'database' => 'example',     
      ),
      'db2.example.net' => array(
        'host'     => 'db2.example.net',
        'port'     => 27017,
        'database' => 'example',     
      )
    ),    

What do you think?

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