#mysql #orm

deprecated fudge

An ORM for MySQL in pure Rust

1 unstable release

0.0.0 Jun 17, 2020

#238 in #mysql

MIT/Apache

12KB
196 lines

Code Coverage Security audit Rust

Fudge is an Object-Relational Mapping crate for the Rust environment

Installation

This crate is a library, as such it can be installed by adding the following to your Cargo.toml

[dependancies]
fudge = "*"

Once you have done that, you can use the library in your project by adding

use fudge::Fudge;

Usage

You can read full documentation here or alternatively, read basic docs blow.

Connecting to the database:

let database = Fudge::new("username", "password", "database", "host", 3306 /* port: default is 3306 for MySql*/);

Querying the database:

let result = database.query_raw("SOME SQL QUERY")?;

due to the current status of Fudge, there is no:

    SQL query compiler,
    no query optimization,
    no query construction utils
    no dynamic query routing
and no protection against:
    SQL Injection
    Cartesian Explosions

Changelog:
Version 0.0.0 -> 0.0.1

Feature Status Issue Comment
Fudge (struct) Created N/A This is the struct around which the module rotates
FudgeOptions (struct) Created N/A Used internally for structs::Fudge

View previous changelogs

Dependencies

~18–30MB
~485K SLoC