ORE Studio 0.0.4
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
login_info_repository Class Reference

Reads and writes login tracking information off of data storage. More...

#include <login_info_repository.hpp>

Collaboration diagram for login_info_repository:
Collaboration graph

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_inforead (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_inforead ()
 Reads login information, possibly filtered by account ID.
 
std::vector< domain::login_inforead (const boost::uuids::uuid &account_id)
 

Detailed Description

Reads and writes login tracking information off of data storage.

Member Function Documentation

◆ read()

std::vector< domain::login_info > read ( std::uint32_t  offset,
std::uint32_t  limit 
)

Reads login information with pagination support.

Parameters
offsetNumber of records to skip
limitMaximum number of records to return
Returns
Vector of login info within the specified range

◆ get_total_login_info_count()

std::uint32_t get_total_login_info_count ( )

Gets the total count of login info records.

Returns
Total number of login info records