Description
This app will run on multiple nodes, to test table consistency.
Setup
DbConnect.Mnesia.setup!(DbConnect.Trade)
Sets up the table.
DbConnect.record_trade(%{
:user_id => 5,
:symbol => "INFY",
:price => 3000_00,
:quantity => 20,
:order_type => "B"
})
Inserts a record.
DbConnect.list_trades()
Lists all records.
DbConnect.get_trade(7)
Find trade with id 7.