premix-orm 1.0.0

The comprehensive ORM library for Rust. This is a facade crate for premix-core and premix-macros.
Documentation
premix-orm-1.0.0 has been yanked.

Premix ORM

Premix ORM is a zero-overhead, type-safe ORM for Rust, designed for performance and developer experience.

This crate (premix) is a facade that re-exports the core logic and macros, providing a unified entry point for your application.

Installation

Add this to your Cargo.toml:

[dependencies]

premix-orm = "1.0.0"

Quick Start

use premix::Model;
use premix::prelude::*; // If we add a prelude later

#[derive(Model, Debug, Serialize, Deserialize)]
pub struct User {
    pub id: i32,
    pub name: String,
}

// ... usage
let user = User::find_by_id(executor, 1).await?;

Features

  • Type-Safe Queries: Leverages sqlx for compile-time checked SQL execution.
  • Auto-Derive: #[derive(Model)] handles all the boilerplate.
  • Performance: Zero-overhead abstraction over raw SQL queries.
  • Multi-Database: Support for SQLite, Postgres, and MySQL.

License

This project is licensed under the MIT license.