Skip to content

Handling infileStreamFactory at connection-level #2151

Closed
@loozhengyuan

Description

@loozhengyuan

The infileStreamFactory option only works when calling connection.query() or connection.execute(), which is as documented.

However, if I set it on a connection-level as suggested in #1080, the configuration is currently not propagated when calling connection.query() or connection.execute(). Since I am using Sequelize, which only exposes the connection configuration via dialectOptions, there is no other way I can set the infileStreamFactory option.

To help move this forward, I am keen to know where the change should be made:

  1. To support the infileStreamFactory connection option in mysql2 and pass it when calling Commands.Execute()/Commands.Query(); or
  2. To make the change in Sequelize instead to expose these options at a query-level.

Any comments/feedback is deeply appreciated, thanks!

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