kea-custom-hooks
FeM custom hooks libraries for Kea DHCP
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
ahri::LocalDBClientPrivate Struct Reference

Public Member Functions

 LocalDBClientPrivate (const std::string &connstr)
 
 LocalDBClientPrivate (const LocalDBClientPrivate &)=delete
 
 ~LocalDBClientPrivate ()=default
 
void apply_host_update (pqxx::work &transaction, const AdminDBClient::HostUpdate &host_update)
 
void setup_tmp_host_table ()
 
void prepare_insert_tmp_host_reservations ()
 
void insert_tmp_host_reservations (pqxx::work &transaction, const std::vector< AdminDBClient::HostUpdate > &full_sync)
 
auto compare_current_and_tmp_host_reservations (pqxx::work &transaction)
 

Static Public Member Functions

static AdminDBClient::HostUpdate make_host_update_from_diff_row (const pqxx::row &row)
 
static AdminDBClient::HostUpdate make_host_update_from_hosts_row (const pqxx::row &row)
 
static void remove_tmp_host_table (pqxx::work &transaction)
 

Public Attributes

pqxx::connection psql
 

Detailed Description

Definition at line 32 of file LocalDBClient.cpp.

Constructor & Destructor Documentation

◆ LocalDBClientPrivate() [1/2]

ahri::LocalDBClientPrivate::LocalDBClientPrivate ( const std::string &  connstr)
inline

Definition at line 34 of file LocalDBClient.cpp.

◆ LocalDBClientPrivate() [2/2]

ahri::LocalDBClientPrivate::LocalDBClientPrivate ( const LocalDBClientPrivate )
delete

◆ ~LocalDBClientPrivate()

ahri::LocalDBClientPrivate::~LocalDBClientPrivate ( )
default

Member Function Documentation

◆ apply_host_update()

void ahri::LocalDBClientPrivate::apply_host_update ( pqxx::work &  transaction,
const AdminDBClient::HostUpdate host_update 
)
inline

Definition at line 72 of file LocalDBClient.cpp.

◆ compare_current_and_tmp_host_reservations()

auto ahri::LocalDBClientPrivate::compare_current_and_tmp_host_reservations ( pqxx::work &  transaction)
inline

Definition at line 126 of file LocalDBClient.cpp.

◆ insert_tmp_host_reservations()

void ahri::LocalDBClientPrivate::insert_tmp_host_reservations ( pqxx::work &  transaction,
const std::vector< AdminDBClient::HostUpdate > &  full_sync 
)
inline

Definition at line 110 of file LocalDBClient.cpp.

◆ make_host_update_from_diff_row()

static AdminDBClient::HostUpdate ahri::LocalDBClientPrivate::make_host_update_from_diff_row ( const pqxx::row &  row)
inlinestatic

Definition at line 152 of file LocalDBClient.cpp.

◆ make_host_update_from_hosts_row()

static AdminDBClient::HostUpdate ahri::LocalDBClientPrivate::make_host_update_from_hosts_row ( const pqxx::row &  row)
inlinestatic

Definition at line 181 of file LocalDBClient.cpp.

◆ prepare_insert_tmp_host_reservations()

void ahri::LocalDBClientPrivate::prepare_insert_tmp_host_reservations ( )
inline

Definition at line 98 of file LocalDBClient.cpp.

◆ remove_tmp_host_table()

static void ahri::LocalDBClientPrivate::remove_tmp_host_table ( pqxx::work &  transaction)
inlinestatic

Definition at line 196 of file LocalDBClient.cpp.

◆ setup_tmp_host_table()

void ahri::LocalDBClientPrivate::setup_tmp_host_table ( )
inline

Definition at line 90 of file LocalDBClient.cpp.

Member Data Documentation

◆ psql

pqxx::connection ahri::LocalDBClientPrivate::psql

Definition at line 201 of file LocalDBClient.cpp.


The documentation for this struct was generated from the following file: