From 3136dd94fa4f9f2bb6fd8253f9fd58225399faca Mon Sep 17 00:00:00 2001 From: FlorianSf Date: Wed, 3 Jul 2024 14:45:08 +0200 Subject: [PATCH] Adding another example for DuckDB in #13 --- readme.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/readme.md b/readme.md index 2ac7a16..f04f01e 100644 --- a/readme.md +++ b/readme.md @@ -361,6 +361,9 @@ $c = Read-DuckDBQueryAsScalar -Query "Select count(*) from read_csv('.\test.txt' # This query then trys to find out more about the csv file like the delimiter, headers, date formats, column data types and much more # The delimiter does not need to be defined explicitely, it expects UTF-8 $c = Read-DuckDBQueryAsReader -Query "Select * from sniff_csv('.\test.txt', sample_size=1000, delim='\t') limit 10" -ReturnAsPSCustom + +# Read a csv file as an array of pscustom objects +$c = Read-DuckDBQueryAsReader -Query "Select * from sniff_csv('.\test.txt', delim='\t')" -ReturnAsPSCustom -AsStream ``` # Errors