Skip to content

spiceai/spice-dotnet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotnet Spice SDK

Dotnet SDK for Spice.ai.

  • Supports .NET Standard 2.0+ and .NET 6.0+.
  • Asynchronous I/O.

Install

dotnet add package spiceai

Usage

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

Arrow Query

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

Documentation

Check out our Documentation to learn more about how to use the Dotnet SDK.