Re: [go-nuts] Enumerate query result fields using "github.com/go-ole/go-ole/oleutil"

2019-02-12 Thread Curtis Paul
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: >

Re: [go-nuts] Enumerate query result fields using "github.com/go-ole/go-ole/oleutil"

2019-02-11 Thread Lutz Horn
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

[go-nuts] Enumerate query result fields using "github.com/go-ole/go-ole/oleutil"

2019-02-10 Thread Curtis Paul
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