Docs
This commit is contained in:
parent
a0d9b47b1f
commit
72e8b1f9d6
51
src/lib.rs
51
src/lib.rs
@ -1,4 +1,47 @@
|
||||
//! # Select
|
||||
//! <div align="center">
|
||||
//!
|
||||
//! <img src="docs/SeaORM banner.png"/>
|
||||
//!
|
||||
//! <h1>SeaORM</h1>
|
||||
//!
|
||||
//! <p>
|
||||
//! <strong>🐚 An async & dynamic ORM for Rust</strong>
|
||||
//! </p>
|
||||
//!
|
||||
//! <sub>Built with 🔥 by 🌊🦀🐚</sub>
|
||||
//!
|
||||
//! </div>
|
||||
//!
|
||||
//! # SeaORM
|
||||
//!
|
||||
//! Inspired by ActiveRecord, Eloquent and TypeORM, SeaORM aims to provide you an intuitive and ergonomic
|
||||
//! API to make working with databases in Rust a first-class experience.
|
||||
//!
|
||||
//! ```ignore
|
||||
//! This is an early WIP of SeaORM, and is not yet published. See [example](examples/sqlx-mysql/src) for demo usage.
|
||||
//! ```
|
||||
//!
|
||||
//! ## Features
|
||||
//!
|
||||
//! 1. Async
|
||||
//!
|
||||
//! Relying on SQLx, SeaORM is a new library with async support from day 1.
|
||||
//!
|
||||
//! 2. Dynamic
|
||||
//!
|
||||
//! Built upon SeaQuery, a dynamic query builder, SeaORM allows you to build complex queries without 'fighting the ORM'.
|
||||
//!
|
||||
//! 3. Testable
|
||||
//!
|
||||
//! Use mock connections to write unit tests for your logic.
|
||||
//!
|
||||
//! 4. API oriented
|
||||
//!
|
||||
//! Quickly build search models that help you join, filter, sort and paginate data in APIs.
|
||||
//!
|
||||
//! # A quick taste of SeaORM
|
||||
//!
|
||||
//! ## Select
|
||||
//! ```
|
||||
//! # use sea_orm::{DbConn, entity::*, query::*, tests_cfg::*};
|
||||
//! # async fn function(db: &DbConn) -> Result<(), QueryErr> {
|
||||
@ -28,7 +71,7 @@
|
||||
//! # Ok(())
|
||||
//! # }
|
||||
//! ```
|
||||
//! # Insert
|
||||
//! ## Insert
|
||||
//! ```
|
||||
//! # use sea_orm::{DbConn, entity::*, query::*, tests_cfg::*};
|
||||
//! # async fn function(db: &DbConn) -> Result<(), ExecErr> {
|
||||
@ -68,7 +111,7 @@
|
||||
//! # Ok(())
|
||||
//! # }
|
||||
//! ```
|
||||
//! # Update
|
||||
//! ## Update
|
||||
//! ```
|
||||
//! # use sea_orm::{DbConn, entity::*, query::*, tests_cfg::*};
|
||||
//! #
|
||||
@ -98,7 +141,7 @@
|
||||
//! # Ok(())
|
||||
//! # }
|
||||
//! ```
|
||||
//! # Delete
|
||||
//! ## Delete
|
||||
//! ```
|
||||
//! # use sea_orm::{DbConn, entity::*, query::*, tests_cfg::*};
|
||||
//! #
|
||||
|
Loading…
x
Reference in New Issue
Block a user