百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

native_db

> 数据库
开源

在 Rust 中嵌入数据库

708 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

在 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:

[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 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rustandroidcross-platformdatabaseembedded-database

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类数据库
定价开源

> 相关工具

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