Question: unique _ ptr Database::getTransaction ( long long transactionId ) { / * * * TODO: Complete the following query so that the transaction for the

unique_ptr Database::getTransaction(long 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 unique_ptr.
*
* When it is working the CLI Menu should do the following:
* Account 1. Make a selection.
*1. Display balance.
*2. List all transactions.
*3. View transaction.
*4. Exit.
*3
* Select transaction by id:
*2
* Transaction 2 $-2122
*
*
* 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 counterparty(counterpartyId,0,"","","");
*/
return nullptr;
}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!