Crate rustorm[][src]

Rustorm

Latest Version Build Status MIT licensed

Rustorm is an SQL-centered ORM with focus on ease of use on conversion of database types to their appropriate rust type.

Selecting records

Re-exports

pub use chrono;
pub use column::ColumnDef;
pub use error::DataError;
pub use error::DbError;
pub use pool::Pool;
pub use table::TableDef;
pub use uuid;
pub use rustorm_dao;

Modules

codegen

Wrap the rustorm_codegen exports to avoid name conflict with the rustorm_dao

column
common
dao

Wrap the rustorm_dao exports to avoid name conflict with the rustorm_codegen

error
pool
table
types
util

Structs

ColumnName
Dao
DaoManager

an interface executing sql statement and getting the results as generic DAO values without any further conversion.

DatabaseName

The current database name and its comment

EntityManager
Rows

use this to store data retrieved from the database This is also slimmer than Vec when serialized

TableName
Uuid

A Universally Unique Identifier (UUID).

Enums

Array
ConvertError
DBPlatform
Value

Generic value storage 32 byte in size Some contains the same value container, but the variant is more important for type hinting and view presentation hinting purposes

Traits

Database
FromValue
ToValue

A trait to allow passing of parameters ergonomically in em.execute_sql_with_return

Derive Macros

FromDao
ToColumnNames
ToDao
ToTableName