Skip to content

Feature request: Support initialization of the database connection with the DbDataSouce-like instance #729

@luborozporka

Description

@luborozporka

Currently, PetaPoco supports initializing DatabaseConfiguration.Build() with either a direct connection or a connection string. However, these approaches have limitations: a direct connection can disable pooling (as seen with MySqlConnector, see: https://dev.mysql.com/doc/connector-net/en/connector-net-connections-pooling.html), and using a connection string prevents leveraging modern DbDataSource (see: https://learn.microsoft.com/en-us/dotnet/api/system.data.common.dbdatasource) features like connection callbacks, integrated logging..

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