Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to underlying PDO object? #2

Open
hultberg opened this issue Apr 30, 2022 · 0 comments
Open

Access to underlying PDO object? #2

hultberg opened this issue Apr 30, 2022 · 0 comments

Comments

@hultberg
Copy link
Member

In some projects I have had to integrate other database libraries which requires a PDO object. DBAL library API does not provide any way for developers (without reflection "hacks") to get the underlying PDO object that the DatabaseConnection object is provided. The DatabaseConnectionInterface also does not contain any method to get the underlying database connection library. The intention of the interface is to have an abstraction so that consumers don't need to worry about the underlying implementation. A complication might be the LazyDatabaseConnection class which creates the PDO object on demand. Any thoughts here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant