First-class Integration

Armature Integration

Seamless integration with the Armature HTTP framework using dependency injection.

Installation

Module Setup

Register Prax as a singleton provider in your Armature module:

Controller Usage

Inject the PraxClient into your controllers:

Request-Scoped Transactions

Use the DatabaseMiddleware for automatic transaction management:

Features

🔌 Dependency Injection

Full integration with Armature's DI container.

📦 Singleton Provider

Connection pool shared across all requests.

🔄 Request Transactions

Automatic rollback on error, commit on success.

âš¡ Async Native

Built on Tokio with full async/await support.