TODO
This commit is contained in:
parent
6e7e2a59d3
commit
a280a227d8
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user