Documentation

Everything you need to build with CSharpDB — reference docs, runnable samples, and guided tutorials.

Choose the right path: use Runnable Samples when you want complete projects and working example code. Use Guided Tutorials when you want an explanation-first walkthrough of a feature, pattern, or subsystem.

Start Here

Core Concepts

DbType, DbValue, TableSchema, IndexSchema — the foundational types that power the database.

SQL Reference

DDL, DML, JOINs, aggregates, CTEs, subqueries, views, triggers, stored procedures, and built-in functions.

Collection API

Typed Collection<T> with JSON serialization, nested path indexing, array-element queries, and range scans.

Full-Text Search

Built-in FTS with Unicode tokenization, term-intersection queries, and automatic index maintenance.

ETL Pipelines

Built-in pipeline runtime with CSV/JSON connectors, transforms, validation, dry-run, and run history.

Database Modes

File-based, in-memory, and hybrid (lazy-resident) — how each mode works and when to use it.

Storage Engine

B+tree operations, paging, transactions, WAL, checkpointing, serialization, and diagnostics.

Storage Architecture Deep Dive

Pager, WAL, B+tree, SchemaCatalog — how the storage engine components collaborate.

Tools & Ecosystem

CLI REPL, Admin UI, REST API, gRPC daemon, Client SDK, ADO.NET provider, MCP server, and VS Code extension.

EF Core Provider

Use DbContext, migrations, LINQ, and embedded storage tuning with CSharpDB.EntityFrameworkCore.

Admin UI Guide

CSharpDB Studio — browse data, write SQL, manage schemas, design pipelines, and inspect storage.

Reports

Visual report designer with banded layouts, grouping, sorting, expressions, aggregates, and printable preview.

CLI Reference

Interactive REPL, meta-commands, SQL introspection, transaction management, and storage inspector commands.

REST API

HTTP endpoints for tables, rows, indexes, views, triggers, SQL execution, and stored procedures.

MCP Server

Connect AI assistants — Claude, Cursor, VS Code, LM Studio — to CSharpDB via Model Context Protocol.

Internals & Contributing

Project structure, query flow walkthrough, adding SQL statements, testing strategy, and concurrency model.

FAQ

Common questions about setup, SQL, schema, the CLI, Admin UI, and development workflow.

Storage Inspector

Read-only diagnostics — database file, WAL, page, and index integrity checks with JSON output.

Collection Indexing

Document indexes — scalar, nested object, array-element paths with equality and range queries.

Storage Engine Reference

Low-level API walkthrough — IStorageDevice, Pager, B+tree, WAL, SlottedPage, indexing, and schema catalog.

Collation Support

Case-insensitive and locale-aware sorting plan — NOCASE, ICU, COLLATE clause for queries and indexes.

Migrations

CSharpDB.Core to CSharpDB.Primitives — namespace, project reference, and package migration guide.