prax-mysql

Crates.ioprax-mysql
lib.rsprax-mysql
version0.5.0
created_at2025-12-21 16:28:41.52513+00
updated_at2026-01-07 18:34:03.515906+00
descriptionMySQL database driver for Prax ORM
homepage
repositoryhttps://github.com/pegasusheavy/prax-orm
max_upload_size
id1998251
size131,699
Joseph R. Quinn (quinnjr)

documentation

README

prax-mysql

MySQL query engine for Prax ORM.

Overview

prax-mysql provides an async MySQL backend using the mysql_async driver.

Features

  • Async query execution with Tokio
  • Connection pooling
  • Transaction support
  • Prepared statement caching
  • SSL/TLS support

Usage

use prax_mysql::MySqlEngine;

let engine = MySqlEngine::new("mysql://user:pass@localhost/db").await?;

// Execute queries through Prax client
let client = PraxClient::with_engine(engine);
let users = client.user().find_many().exec().await?;

Configuration

use prax_query::connection::PoolConfig;

let config = PoolConfig::new()
    .max_connections(20)
    .min_connections(5);

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

Commit count: 0

cargo fmt