Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

afastorm

afastorm is a framework-independent Rust ORM built on SQLx. It provides model metadata, repository operations, migrations, and transaction support without requiring callers to pass a connection pool to every operation.

Features

  • SQLite and PostgreSQL drivers, selected with Cargo features.
  • Derive-based model metadata and an explicit model registry.
  • Typed repositories for CRUD operations and filtered queries.
  • Soft deletion and optimistic version locking.
  • Model operations inside explicit SQLx transactions.
  • Migration generation and execution APIs, plus a command-line tool.
  • A Dialect trait for custom SQL dialects backed by SQLx Any.

The crate does not depend on AFaster. HTTP administration interfaces and framework integration belong in application crates.

Documentation