1
0
mirror of https://github.com/actix/examples synced 2025-06-29 02:10:36 +02:00

delete db/r2d2 example

This commit is contained in:
Rob Ede
2022-02-06 08:25:38 +00:00
parent a4d43c0ff8
commit da60a30fd9
22 changed files with 29 additions and 123 deletions

View File

@ -1,6 +1,6 @@
# diesel
Basic integration of [Diesel](https://diesel.rs/) using SQLite for Actix web.
Basic integration of [Diesel](https://diesel.rs/) using SQLite for Actix Web.
## Usage

View File

@ -26,7 +26,7 @@ pub fn insert_new_user(
nm: &str,
conn: &SqliteConnection,
) -> Result<models::User, DbError> {
// It is common when using Diesel with Actix web to import schema-related
// It is common when using Diesel with Actix Web to import schema-related
// modules inside a function's scope (rather than the normal module's scope)
// to prevent import collisions and namespace pollution.
use crate::schema::users::dsl::*;

View File

@ -1,4 +1,4 @@
//! Actix web Diesel integration example
//! Actix Web Diesel integration example
//!
//! Diesel does not support tokio, so we have to run it in separate threads using the web::block
//! function which offloads blocking code (like Diesel's) in order to not block the server's thread.