Skip to content

Default DB connection #4

Description

@vaclavn

It would be nice if one defined connection was the default so all tests working with the first connection still work without any change.

I can imagine ugly solution to make the connection called primary always the default. Or adding a new parameter to make the connection default.

modules:
    config:
        MultiDb:
            connections:
                primary:
                    dsn: 'mysql:host=mysql;port=3306;dbname=test_db'
                    user: '...'
                    password: '...'
                    primary: true

I can prepare pull-request if you like the idea.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions