GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dotstream/slatedb-csharp-binding: Provide C# Binding for SlateDb

BranchesTags
Open more actions menu

Latest commit

 

History

77 Commits
77 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
rust
rust
 
 
src
src
 
 
.DS_Store
.DS_Store
 
 
.gitignore
.gitignore
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
generate-binding.sh
generate-binding.sh
 
 
get-slatedb-c-bindings.sh
get-slatedb-c-bindings.sh
 
 
slatedb-csharp-binding.sln
slatedb-csharp-binding.sln
 
 
slatedb-csharp-binding.sln.DotSettings.user
slatedb-csharp-binding.sln.DotSettings.user
 
 

Repository files navigation

SlateDb .Net

A thin C#/.NET wrapper for the SlateDb Rust library exposing the native SlateDb API via FFI for use from .NET applications.

Original SlateDb (Rust)

  • Upstream Rust project: SlateDb
  • This wrapper links to the Rust library (native binary/dynamic library) and provides a managed API surface.

Usage

Example :

using SlateDb.Configuration;

// create and open an in-memory slatedb instance
using var db = SlateDb.SlateDb
    .Create<string, string>("db")
    .WithObjectConfiguration(new MemoryStoreConfig())
    .Build();

// put elements
db.Put("user:sylvain", "value1");
db.Put("user:melissa", "value2");
db.Put("user:lise", "value3");
db.Put("user:jules", "value4");

// get via a scan prefix
foreach (var kv in db.ScanPrefix("user:"))
    Console.WriteLine($"{kv.Key} = {kv.Value}");

Building

Prerequisites:

  • .NET SDK (dotnet)
  • Rust toolchain (cargo, rustc)
  • Platform toolchain (MSVC on Windows if using MSVC target)

Typical steps:

  1. Build the Rust library
./generate-binding.sh
  1. Build the C# wrapper
dotnet build
  1. Run the unit test to validate everything works
dotnet test
  1. Start using the launcher (src/SlateDbLauncher) to do some tests

Versioning

SlateDb Version (Rust) Binding Version (C#) Status
0.10.1 0.10.1 ✅
0.11.1 0.11.1 ✅
0.11.2 0.11.2 ✅
0.12.0 0.12.0 ✅
0.12.1 0.12.1 ✅
0.13.0 0.13.0 ✅
0.13.1 0.13.1 ✅
0.14.0 0.14.0 ✅
0.14.1 0.14.1 ✅
0.15.0 0.15.0 ✅
0.16.0 0.16.0 ✅
0.17.0 0.17.0 ✅
0.18.1 0.18.1 🟨

License

SlateDB .Net and the original SlateDb ifself is licensed under the Apache License, Version 2.0.

Contributions, issues and PRs welcome. Ensure the Rust upstream license and compatibility are respected when redistributing binaries.

About

Provide C# Binding for SlateDb

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

2 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.