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:
@ -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
|
||||
|
||||
|
@ -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::*;
|
||||
|
@ -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.
|
||||
|
Reference in New Issue
Block a user