-
-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested
Description
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.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingquestionFurther information is requestedFurther information is requested