Skip to main content

insert_locked

Function insert_locked 

Source
async fn insert_locked(
    conn: &mut PgConnection,
    input: ChatbotConversationMessage,
) -> ModelResult<ChatbotConversationMessage>
Expand description

insert for a caller whose own transaction already holds the conversation lock, which is what makes the order_number allocation safe. Taking it again would only cost round trips.