Skip to main content

new_position

Function new_position 

Source
async fn new_position<T: TransactedSyncV4Queries>(
    transaction: &mut T,
    connection: &mut ResolvedConnection,
) -> Result<i64, DatabaseError>
Expand description

Creates a new position tied to the given connection.

NOTE: This also updates connection.next_token to point to that new position.

Returns the ID of the new position.