| Crates.io | premix-core |
| lib.rs | premix-core |
| version | 1.0.6-alpha |
| created_at | 2026-01-17 17:56:44.644864+00 |
| updated_at | 2026-01-20 20:31:58.543586+00 |
| description | A Zero-Overhead, Type-Safe ORM for Rust that runs optimized SQL. |
| homepage | |
| repository | https://github.com/premix-labs/premix-orm |
| max_upload_size | |
| id | 2050865 |
| size | 198,083 |
The foundational library for Premix ORM.
premix-core provides the essential traits, types, and logic that power the ORM functionality. It includes:
SqlDialect)IntoExecutor, Executor)Model)This crate is part of a research prototype. APIs may change and production use is not recommended yet.
Most users should depend on premix-orm instead. Use premix-core directly only if you are building extensions or low-level tooling.
[dependencies]
premix-core = "1.0.6-alpha"
use premix_core::{Model, Premix};
use sqlx::SqlitePool;
#[derive(Model, Debug)]
struct User {
id: i32,
name: String,
}
async fn example() -> Result<(), sqlx::Error> {
let pool = SqlitePool::connect("sqlite::memory:").await?;
Premix::sync::<sqlx::Sqlite, User>(&pool).await?;
Ok(())
}
premix-core uses sqlx under the hood. Make sure your sqlx features match the database feature you enable here.
This project is licensed under the MIT license.