Dotnet SDK for Spice.ai.
- Supports .NET Standard 2.0+ and .NET 6.0+.
- Asynchronous I/O.
dotnet add package spiceai
Usage with locally running spice runtime
Follow the quickstart guide to install and run spice locally
using Spice;
var client = new SpiceClientBuilder().Build();
New client with https://spice.ai cloud
using Spice;
var client = new SpiceClientBuilder()
.WithApiKey("API_KEY")
.WithSpiceCloud()
.Build();
SQL Query
using Spice;
var client = new SpiceClientBuilder()
.WithApiKey("API_KEY")
.WithSpiceCloud()
.Build();
var data = await client.Query("SELECT * FROM eth.recent_blocks LIMIT 10;");
Check out our Documentation to learn more about how to use the Dotnet SDK.