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: &CoolContext,
) -> Result<M, CoolError>where
E: Executor<'e, Database = Postgres>,
I: CreateModelInput<M>,
for<'r> M: Send + Unpin + FromRow<'r, PgRow> + Serialize,