InsertMany function for create trait.

Changed path to DateTimeInterval.

Changed lifetimes on derives with async_trait
This commit is contained in:
Martin Berg Alstad
2024-08-25 17:56:56 +02:00
parent 762330189d
commit eeab1257e3
11 changed files with 80 additions and 56 deletions

View File

@ -42,7 +42,7 @@ async fn test_insert_user() {
let database_url = dotenv!("DATABASE_URL");
let mut conn = AsyncPgConnection::establish(database_url).await.unwrap();
conn.begin_test_transaction().await.unwrap();
let _user = User::create(
let _user = User::insert(
InsertUser {
email: "test".to_string(),
},