Question: unique _ ptr Database::getTransaction ( long long transactionId ) { / * * * TODO: Complete the following query so that the transaction for the
uniqueptr Database::getTransactionlong long transactionId
TODO: Complete the following query so that the transaction for the
transactionId is loaded from the database and stored into a
Transaction object which returned by uniqueptr
When it is working the CLI Menu should do the following:
Account Make a selection.
Display balance.
List all transactions.
View transaction.
Exit.
Select transaction by id:
Transaction $
Here is the query string to use:
"SELECT AccountId, counterpartyId, Amount, Timestamp
"FROM AccountTransaction WHERE TransactionId :id;
You can create a default Counterparty object.
Counterparty counterpartycounterpartyId;
return nullptr;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
