Remove DbConnection class in favor of fully-static and typed Db class

This commit is contained in:
Alex Cabal 2025-02-25 16:27:56 -06:00
parent 0a684facee
commit e2e14a3551
6 changed files with 564 additions and 528 deletions

View file

@ -2,7 +2,7 @@
namespace Traits;
/**
* Normally, the `DbConnection` class fills in an object itself, using reflection to decide on enums. Sometimes, we want to define an explicit `FromRow()` method on a class. This trait provides a default `FromRow()` method that assigns columns to object properties, and attemps to figure out enum types. The object can override this method if necessary.
* Normally, the `Db` class fills in an object itself, using reflection to decide on enums. Sometimes, we want to define an explicit `FromRow()` method on a class. This trait provides a default `FromRow()` method that assigns columns to object properties, and attemps to figure out enum types. The object can override this method if necessary.
*/
trait FromRow{
/**