darkain / pudl

PHP Universal Database Library - connects to and generates queries for SQL Servers
BSD 2-Clause "Simplified" License
28 stars 5 forks source link

extended collection #21

Open darkain opened 3 years ago

darkain commented 3 years ago

collection, but instead of key=>value, it is key=>[array,of,values], where the array is a K/V of every column in the return list, and the parent key is a designated value from said column list.

darkain commented 3 years ago

on second thought, this is essentially redefining the normal "select" function, but instead of using an auto-generated integer for the array key, it is instead based on a value from the result set. maybe create an internal chainable method for storing what the "key" column should be, with NULL/invalid values being the current automatic method.