Skip to content

Introduction ​

DataVo is an embedded database engine written in C# for .NET 10. It runs directly inside your application process with no external server, no native DLLs, and full Native AOT compatibility, combining SQL, LSM storage, columnar indexes, vector search, and live reactive views in one library.

csharp
using DataVo.Core;
using DataVo.Core.StorageEngine.Config;

using var db = new DataVoContext(new DataVoConfig { StorageMode = StorageMode.InMemory });
db.Execute("CREATE DATABASE Demo");
db.Execute("USE Demo");
db.Execute("CREATE TABLE players (Id INT PRIMARY KEY, Name VARCHAR(80), Score INT)");
db.Execute("INSERT INTO players (Id, Name, Score) VALUES (1, 'Ada', 950)");

var result = db.Execute("SELECT Name, Score FROM players WHERE Id = 1")[0];
Console.WriteLine($"{result.Data[0]["Name"]}: {result.Data[0]["Score"]}");

Choose Your Path ​

Architecture Overview ​

Every client interface—DataVoContext, compiled LINQ, ADO.NET, Dapper, and the EF Core bridge—routes into the same parser, typed query planner, and storage engines.

DataVo architecture showing client interfaces, SQL parser, typed fast-path planner, and InMemory and LSM storage enginesDataVo architecture showing client interfaces, SQL parser, typed fast-path planner, and InMemory and LSM storage engines

Storage Engines ​

ModeBacking EngineBest For
StorageMode.InMemoryPacked contiguous row buffers (FlatRowStore)Ephemeral caches, tests, simulations, game state
StorageMode.LsmCommit log (WAL), arena MemTables, memory-mapped SSTables, 4,096-row columnar segmentsProduction embedded persistence with LsmStrictFsync = true
StorageMode.DiskLegacy paged file engineReading existing v0.1/v0.2 data only; prefer Lsm for new work

Queries are first offered to typed execution paths (single-table scans, integer-key hash joins, columnar aggregates, index-driven joins, and filtered vector search) that read cells straight from stored bytes without building per-row dictionaries. If a query shape is outside the fast paths, it falls back to the general evaluator with identical semantics.

VECTOR(n) columns are first-class relational columns backed by SIMD-accelerated FLAT (exact) or HNSW (approximate graph with cost-based exact fallback) indexes, keeping embeddings and metadata in one transaction log.

Packages at a Glance ​

PackagePurposeNative AOT
DataVo.CoreEmbedded engine, DataVoContext, storage engines, vector & reactive APIsYes
DataVo.GeneratorsRoslyn source generator for [DataVoTable], [DataVoQuery], and compiled LINQYes
DataVo.DataStandard ADO.NET provider (DataVoConnection, DataVoCommand, DataVoDataReader) + DapperYes
DataVo.EntityFrameworkCoreExperimental EF Core bridge (UseDataVo(...)); not a standalone providerNo

Where DataVo Fits and Where It Doesn't ​

  • Strong fit: Local-first .NET 10 apps, game tooling, simulations, and retrieval workloads that combine relational filtering with vector search. On warm caches, v0.4 outperforms SQLite on key lookups, low-cardinality GROUP BY, integer-key joins, columnar aggregates, and filtered vector search.
  • Not a fit: Client/server deployments, multi-process writes to one directory (datavo.lock enforces single-process ownership), stored procedures/triggers, or serializable predicate locking. For whole-table analytics over tens of millions of rows, DuckDB remains orders of magnitude faster.
  • Need multi-device PostgreSQL sync? DataVo-Sync is a separate commercial add-on providing offline-first bidirectional sync over WebSocket/HTTP with wire v2 + Brotli.

See Also ​