Persists the transfer market: history (append-only), payments and clauses, loans, pre-contracts, player market flags, incoming offers with the rounds of their talks, and the managed club's open talks.
More...
|
| | TransferRepository (std::shared_ptr< DatabaseConnection > db_conn) |
| |
| std::vector< TransferRecord > | loadHistory () const |
| |
| void | appendHistory (std::size_t first_seq, std::span< const TransferRecord > records) const |
| |
| std::vector< TransferObligation > | loadObligations () const |
| |
| void | replaceObligations (const std::vector< TransferObligation > &obligations) const |
| |
| std::vector< LoanDeal > | loadLoans () const |
| |
| void | replaceLoans (const std::unordered_map< PlayerID, LoanDeal > &loans) const |
| |
| std::vector< PreContractDeal > | loadPreContracts () const |
| |
| void | replacePreContracts (const std::unordered_map< PlayerID, PreContractDeal > &deals) const |
| |
| std::unordered_map< PlayerID, PlayerMarketFlags > | loadFlags () const |
| |
| void | replaceFlags (const std::unordered_map< PlayerID, PlayerMarketFlags > &flags) const |
| |
| void | loadOffers (std::vector< IncomingOffer > &offers, std::unordered_map< PlayerID, Negotiation > &talks, std::vector< TalksCooldown > &cooldowns) const |
| |
| void | replaceOffers (const std::vector< IncomingOffer > &offers, const std::unordered_map< PlayerID, Negotiation > &talks, const std::vector< TalksCooldown > &cooldowns) const |
| |
Persists the transfer market: history (append-only), payments and clauses, loans, pre-contracts, player market flags, incoming offers with the rounds of their talks, and the managed club's open talks.
Everything but the history is small and rewritten on every save; all writes run inside the caller's transaction.