class StatelyDB::Transaction::Transaction

def begin

Other tags:
    Api: - private

Returns:
  • (void) - nil
def begin
  @is_transaction_open = true
  req = Stately::Db::TransactionRequest.new(
    begin: Stately::Db::TransactionBegin.new(store_id: @store_id.to_i,
                                             schema_id: @schema::SCHEMA_ID,
                                             schema_version_id: @schema::SCHEMA_VERSION_ID)
  )
  request_only(req)
  @incoming_responses = @stub.transaction(@outgoing_requests)
  nil
end