Core features of Native DB
mainNative DB is a fast, embedded, multi-platform database (server, desktop, mobile) with the following key features:
- Multiple Indexes: Supports primary, secondary, unique, non-unique, and optional keys.
- Note: Optional secondary keys with
Nonevalues cannot be queried using range syntax.
- Note: Optional secondary keys with
- Type Safety: Ensures query type safety to prevent errors from selecting with incorrect types.
- Automatic Model Migration: Handles schema changes automatically.
- ACID Compliance: Provides thread-safe, ACID-compliant transactions via
redb. - Transparent Serialization: Uses
native_modelfor seamless Rust type syncing. You can swap in other libraries likebincodeorpostcard. - Real-time Subscriptions: Supports filtering for
insert,update, anddeleteoperations. - Hot Snapshots: Supports concurrent access via snapshots.