You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now we have database/sql.Rows.Columns() but that only returns the column names.
But although the database driver could return some more information about those columns,
I can't see any way to get it.
sql.Rows has a rowsi member (driver.Rows), and if the driver would implement a
ColumnDescriber (http://play.golang.org/p/NliYBvmg4J), and driver.Rows would propagate
it, OR sql.Rows would export a
DriverRows() driver.Rows
or such method, than we could use database/sql AND have the infos from the underlying
drivers.
A possible workaround is to Scan the first row into some []interface{} and inspect the
returned values. But implementing this for each and every query with previously unknown
columns seems error prone and dubious.
What is the expected output?
database/sql.Rows.Columns
What is the expected output?
What do you see instead?
Which compiler are you using (5g, 6g, 8g, gccgo)?
Which operating system are you using?
Which version are you using? (run 'go version')
Please provide any additional information below.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: