Would it be feasible to allow or provide access to Stmt.colNames? I'm returning slices of values within a ResultFunc (to avoid the overhead of repeated maps) so having the column name to index lookup would be useful.
I'm currently iterating through the ColumnCount() and pulling out stmt.ColumnName(i) one-by-one - easy enough to do, but duplicates the logic and work already done within Conn.prepare. I recognise colNames is used internally by the various getters so modification were a concern, perhaps a function like ColumnNames() might return a clone of the map instead.
Thanks for the consideration.
Would it be feasible to allow or provide access to
Stmt.colNames? I'm returning slices of values within aResultFunc(to avoid the overhead of repeated maps) so having the column name to index lookup would be useful.I'm currently iterating through the
ColumnCount()and pulling outstmt.ColumnName(i)one-by-one - easy enough to do, but duplicates the logic and work already done withinConn.prepare. I recognisecolNamesis used internally by the various getters so modification were a concern, perhaps a function likeColumnNames()might return a clone of the map instead.Thanks for the consideration.