Dotnet SDK
Dotnet SDK for Spice.ai
Last updated
Was this helpful?
Was this helpful?
var result = await client.Query("SELECT * FROM tpch.lineitem LIMIT 10;");var enumerator = result.GetAsyncEnumerator();
while (await enumerator.MoveNextAsync())
{
var batch = enumerator.Current;
// Process batch
}var data = await client.QueryWithParams(
"SELECT * FROM tpch.lineitem WHERE l_quantity > $1 LIMIT 10;", 10);
var batch = await data!.ReadNextRecordBatchAsync();using Spice;
using var client = new SpiceClientBuilder()
.Build();
var data = await client.Query("SELECT trip_distance, total_amount FROM taxi_trips ORDER BY trip_distance DESC LIMIT 10;");using var client = new SpiceClientBuilder()
.WithFlightAddress("http://localhost:50051")
.Build();