forrest79 / phpgsql

Simple and fast PHP database library for PostgreSQL with auto converting DB types to PHP and fluent interface for SQL query writing.
Other
11 stars 3 forks source link

Internals connection object #22

Open forrest79 opened 4 years ago

forrest79 commented 4 years ago

To have a nice public API on Connection object (without public internals method), some functionality is moved to internal objects (Events, AsyncHelper). I was thinking about having Connection as a simple envelope with only public methods and all logic will be in some ConnectionInternals object, that will be passed to other objects, that need connection.

forrest79 commented 3 months ago

After #40, there will be no other public internal method - I think this is not needed anymore.