Skip to content

Connection Options for pool.getConnection #2190

Open
@SReject

Description

@SReject

Would be nice if we could specify various options specific to an acquired pool connection.

I'm specifically interested in debug, trace and multipleStatements though some of the encoding/formatting options would probably be welcome.

I understand the risk of multi-statements, but for my use case, its to setup the db on install so the risk is nil short of my own blunders.

Suggested format would be:

pool.getConnection([options], callback);

To be clear, these options would override the options specified when creating the pool and be for the specific connection returned by be the getConnection()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions