surrealcs_kernel::logging::messages::transactions::id

Function create_id

source
pub fn create_id(connection_index: usize, transaction_index: usize) -> String
Expand description

Creates a transaction ID based on the connection index, transaction index, and the current timestamp.

§Arguments

  • connection_index: The index of the connection in the allocator
  • transaction_index: The index of the transaction in the connection

§Returns

A string representing the transaction ID