An open API service indexing awesome lists of open source software.

https://github.com/mithrandyr/datareadertopsobject

Class Library to Convert DataReader to PSObject (Dynamically)
https://github.com/mithrandyr/datareadertopsobject

Last synced: 2 months ago
JSON representation

Class Library to Convert DataReader to PSObject (Dynamically)

Awesome Lists containing this project

README

        

## Convert DataReader to PSObject
This repo is for a class library used in the SimplySql PowerShell Module.
It enables the use of the -stream switch on Invoke-SqlQuery,
it turns the output of DataReader into PSObject with just members
mapped from the columns.

Attempted to duplicate this code in native PowerShell resulted in a
performance penalty of 3.5x over not using the switch.