pub async fn create_record_with_executor<'e, E, M, PK, I>(
executor: E,
policy_pool: &PgPool,
descriptor: &'static ModelDescriptor<M, PK>,
input: I,
ctx: &CratestackContext,
) -> Result<M, CratestackError>Expand description
Passing a pool as policy_pool while executor is a transaction takes a
second connection; prefer the builder’s run_in_tx.