Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
N

native_db

> 数据库
Open source

Drop-in embedded database in Rust

708 stars0 likes0 views
WebsiteGitHub

About

Drop-in embedded database in Rust

Native DB

Here's a drop-in, fast, embedded database for multi-platform apps (server, desktop, mobile). Sync Rust types effortlessly. Enjoy! .

Features

  • Simple API .
  • Support for multiple indexes (primary, secondary, unique, non-unique, optional).
    • Note: Optional secondary keys with None values cannot be queried using range syntax. See documentation for details.
  • Fast, see sqlite vs redb vs native_db benchmarks.
  • Transparent serialization/deserialization using native_model. You can use any serialization library you want (bincode, postcard, your own etc.).
  • Ensure query type safety to prevent unexpected results caused by selecting with an incorrect type.
  • Automatic model migration .
  • Thread-safe and fully ACID-compliant transactions provided by redb.
  • Real-time subscription with filters for insert, update and delete operations.
  • Compatible with all Rust types (enum, struct, tuple etc.).
  • Hot snapshots.

Installation

Add this to your Cargo.toml:

toml
[dependencies]
native_db = "0.8.1"
native_model = "0.4.20"

Status

Active development. The API is not stable yet and may change in the future.

How to use?

  • Documentation API
  • Quick Start
  • Major Version Upgrade Guide
  • Full example with Tauri: native_db_tauri_vanilla

Projects using Native DB

  • polly-scheduler
  • Oku

If you want to propose your project or company that uses Native DB, please open a PR.

Example

…

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rustandroidcross-platformdatabaseembedded-database

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category数据库
PricingOpen source

> Related tools

P
PostgreSQL
功能强大的开源关系型数据库
R
Redis
内存数据结构存储,常用作缓存与队列
M
MySQL
广泛使用的开源关系型数据库