Skip to content

Conversation

@foxycode
Copy link

@foxycode foxycode commented Nov 23, 2024

New feature: Yes
BC break: No

I would like to use dibi classes like DataSource, Fluent, Result, Row in my project without Connection.

Connection is too much limited to be used with libraries like amphp/postgres where connection internals are not exposed and I thus can't implement just Dibi\Drivers\Connection interface.

By introducing interface, I can implement my own connection and use same querying approach I'm used to from dibi.

@dakujem
Copy link
Contributor

dakujem commented Jul 24, 2025

@foxycode Dibi already features IConnection interface in version 4.x and above. What version are you using? Consider updating the codebase.

@foxycode
Copy link
Author

@dakujem interface iConnection is for Drivers, not Connection, that is used in Fluent for example. I am using 6.0-dev

@dakujem
Copy link
Contributor

dakujem commented Jul 25, 2025

Oh, true, this is a good idea. I wonder whether we'll finally be able to extend or reuse the Result class in v6 (#441).

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

Successfully merging this pull request may close these issues.

3 participants