/// has failed.
std::pair<uint32_t, uint32_t> getVersion() const;
- /// @brief Pointer to the object representing an exchange which
+ /// @Brief Pointer to the object representing an exchange which
/// can be used to retrieve hosts and DHCPv4 options.
boost::shared_ptr<PgSqlHostWithOptionsExchange> host_exchange_;
/// or dhcp6_options table.
boost::shared_ptr<PgSqlOptionExchange> host_option_exchange_;
+ /// @brief The parameters
+ PgSqlConnection::ParameterMap parameters_;
+
/// @brief PgSQL connection
PgSqlConnection conn_;
DHCP4_AND_DHCP6)),
host_ipv6_reservation_exchange_(new PgSqlIPv6ReservationExchange()),
host_option_exchange_(new PgSqlOptionExchange()),
+ parameters_(parameters),
conn_(parameters),
is_readonly_(false) {
- // Open the database.
- conn_.openDatabase();
-
// Validate the schema version first.
std::pair<uint32_t, uint32_t> code_version(PG_SCHEMA_VERSION_MAJOR,
PG_SCHEMA_VERSION_MINOR);
<< db_version.second);
}
+ // Open the database.
+ conn_.openDatabase();
+
// Now prepare the SQL statements.
conn_.prepareStatements(tagged_statements.begin(),
tagged_statements.begin() + WRITE_STMTS_BEGIN);