Skip to main content

Dotnet SDK for Spice.ai

https://github.com/spiceai/spice-dotnet

Install​

dotnet add package spiceai

Connect to spice runtime​

Create a SpiceClient using default configuration:

using Spice;

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;");

Or pass custom flight address:

using Spice;

var client = new SpiceClientBuilder()
.WithFlightAddress("http://my_remote_spice_instance:50051")
.Build();

var data = await client.query("SELECT trip_distance, total_amount FROM taxi_trips ORDER BY trip_distance DESC LIMIT 10;");