|
ORE Studio 0.0.4
|
Reads and writes login tracking information off of data storage. More...
#include <login_info_repository.hpp>

Public Types | |
| using | context = ores::database::context |
Public Member Functions | |
| login_info_repository (context ctx) | |
| std::string | sql () |
| Returns the SQL created by sqlgen to construct the table. | |
| void | write (const std::vector< domain::login_info > &login_infos) |
| Writes login information to database (insert only). | |
| void | update (const domain::login_info &login_info) |
| Updates existing login information in database. | |
| std::vector< domain::login_info > | read (std::uint32_t offset, std::uint32_t limit) |
| Reads login information with pagination support. | |
| std::uint32_t | get_total_login_info_count () |
| Gets the total count of login info records. | |
| void | remove (const boost::uuids::uuid &account_id) |
| Removes login information for a specific account. | |
| std::vector< domain::login_info > | read () |
| Reads login information, possibly filtered by account ID. | |
| std::vector< domain::login_info > | read (const boost::uuids::uuid &account_id) |
Reads and writes login tracking information off of data storage.
| std::vector< domain::login_info > read | ( | std::uint32_t | offset, |
| std::uint32_t | limit | ||
| ) |
Reads login information with pagination support.
| offset | Number of records to skip |
| limit | Maximum number of records to return |
| std::uint32_t get_total_login_info_count | ( | ) |
Gets the total count of login info records.