Using this
"github.com/go-ole/go-ole"
"github.com/go-ole/go-ole/oleutil"
how does the sql package fit in?
On Monday, February 11, 2019 at 1:00:29 AM UTC-7, Lutz Horn wrote:
>
> > Any ideas on how I can get a list of fields (not values) after executing
> > something like this?
>
> Try these:
>
Any ideas on how I can get a list of fields (not values) after executing
something like this?
Try these:
* https://golang.org/pkg/database/sql/#Rows.Columns
* https://golang.org/pkg/database/sql/#Rows.ColumnTypes
These methods give you information about the columns of a sql.Row.
Lutz
--
You
Any ideas on how I can get a list of fields (not values) after executing
something like this?
resultRaw, _ := oleutil.CallMethod(service, "ExecQuery", "SELECT * FROM
Win32_ComputerSystem")
result := resultRaw.ToIDispatch()
defer result.Release()
Basically I just want a list of the field names f