Skip to content

This library doesnt work with sql.Conn #140

@masterkidan

Description

@masterkidan

Describe the bug
A clear and concise description of what the bug is.

Environment (please complete the following information):

  • OS: all
  • Database: all
  • Database driver: N/A
  • Jet version v2.7.1

Code snippet
Query statement and model files of interest.

The library doesn't work with sql.Conn as mentioned in the Readme sections. The issue is that qrm.DB expects the driver to implement both methods with context and without context, however sql.Conn only implements QueryContext, ExecContext etc.
This makes this library difficult to use with Connection Pooling
Expected behavior
Update qrm.DB interface to only require methods with Context, that should allow it to work with sql.DB and sql.Conn.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions