This commit is contained in:
Chris Tsang 2021-09-17 16:03:37 +08:00
parent 6e7e2a59d3
commit a280a227d8

View File

@ -34,6 +34,7 @@ where
where where
A: 'a, A: 'a,
{ {
// TODO: extract primary key's value from query
// so that self is dropped before entering await // so that self is dropped before entering await
let mut query = self.query; let mut query = self.query;
#[cfg(feature = "sqlx-postgres")] #[cfg(feature = "sqlx-postgres")]
@ -48,6 +49,7 @@ where
} }
} }
Inserter::<A>::new(query).exec(db) Inserter::<A>::new(query).exec(db)
// TODO: return primary key if extracted before, otherwise use InsertResult
} }
} }