KitsuneTech-com / Velox-Server

Platform-neutral database communication framework
3 stars 1 forks source link

Add pivot functionality to Model #64

Closed skylardarkfox closed 3 months ago

skylardarkfox commented 3 months ago

The Model::pivot() method allows rows to be pivoted as columns. MySQL does not provide native functionality for this, so any results that require pivoting can first be queried with a normal Model; once this is done, Model::pivot() will return a new Model containing the pivoted results.