• Thomas Markwalder's avatar
    [4277] Bare bones implementation of PgSqlHostDataSource · 33428957
    Thomas Markwalder authored
    src/lib/dhcpsrv
        pgsql_host_data_source.c
        pgsql_host_data_source.h  - new files, preliminary implementation
    
    src/lib/dhcpsrv/Makefile.am
        Added new files pgsql_host_data_source.cc, pgsql_host_data_source.h
    
    src/lib/dhcpsrv/dhcpsrv_messages.mes
        Added log messages DHCPSRV_PGSQL_HOST_DB_GET_VERSION, DHCPSRV_PGSQL_START_TRANSACTION
    
    src/lib/dhcpsrv/pgsql_connection.cc
    src/lib/dhcpsrv/pgsql_connection.h
        Added PgSqlTransaction
        Added PgSqlConnection::startTransaction()
    
    src/lib/dhcpsrv/pgsql_exchange.cc
    src/lib/dhcpsrv/pgsql_exchange.h
        PsqlBindArray
        - Added storage of conversion strings used for bound values
        - Added add() variants for uint8_t, IOAddress, uint8_t buffer
        - Added templated variant for miscellaneous types
    
        PgSqlExchange
        - Removed getColumnValue variants for various integers, replaced
        with templated version for miscellaneous types
    
    src/lib/dhcpsrv/pgsql_lease_mgr.cc
        Added todo comment to remember to account for hwaddr columns added to lease6
    
    src/lib/dhcpsrv/tests/pgsql_exchange_unittest.cc
        TEST(PsqlBindArray, basicOperation) - new test to exercise bind functions
    33428957
pgsql_connection.h 11.6 KB