Kea 2.7.5
db_messages.cc
Go to the documentation of this file.
1// File created from ../../../src/lib/database/db_messages.mes
2
3#include <cstddef>
4#include <log/message_types.h>
6
7namespace isc {
8namespace db {
9
10extern const isc::log::MessageID DATABASE_INVALID_ACCESS = "DATABASE_INVALID_ACCESS";
11extern const isc::log::MessageID DATABASE_MYSQL_COMMIT = "DATABASE_MYSQL_COMMIT";
12extern const isc::log::MessageID DATABASE_MYSQL_FATAL_ERROR = "DATABASE_MYSQL_FATAL_ERROR";
13extern const isc::log::MessageID DATABASE_MYSQL_INITIALIZE_SCHEMA = "DATABASE_MYSQL_INITIALIZE_SCHEMA";
14extern const isc::log::MessageID DATABASE_MYSQL_ROLLBACK = "DATABASE_MYSQL_ROLLBACK";
15extern const isc::log::MessageID DATABASE_MYSQL_START_TRANSACTION = "DATABASE_MYSQL_START_TRANSACTION";
16extern const isc::log::MessageID DATABASE_PGSQL_COMMIT = "DATABASE_PGSQL_COMMIT";
17extern const isc::log::MessageID DATABASE_PGSQL_CREATE_SAVEPOINT = "DATABASE_PGSQL_CREATE_SAVEPOINT";
18extern const isc::log::MessageID DATABASE_PGSQL_DEALLOC_ERROR = "DATABASE_PGSQL_DEALLOC_ERROR";
19extern const isc::log::MessageID DATABASE_PGSQL_FATAL_ERROR = "DATABASE_PGSQL_FATAL_ERROR";
20extern const isc::log::MessageID DATABASE_PGSQL_INITIALIZE_SCHEMA = "DATABASE_PGSQL_INITIALIZE_SCHEMA";
21extern const isc::log::MessageID DATABASE_PGSQL_ROLLBACK = "DATABASE_PGSQL_ROLLBACK";
22extern const isc::log::MessageID DATABASE_PGSQL_ROLLBACK_SAVEPOINT = "DATABASE_PGSQL_ROLLBACK_SAVEPOINT";
23extern const isc::log::MessageID DATABASE_PGSQL_START_TRANSACTION = "DATABASE_PGSQL_START_TRANSACTION";
24extern const isc::log::MessageID DATABASE_PGSQL_TCP_USER_TIMEOUT_UNSUPPORTED = "DATABASE_PGSQL_TCP_USER_TIMEOUT_UNSUPPORTED";
25extern const isc::log::MessageID DATABASE_TO_JSON_BOOLEAN_ERROR = "DATABASE_TO_JSON_BOOLEAN_ERROR";
26extern const isc::log::MessageID DATABASE_TO_JSON_INTEGER_ERROR = "DATABASE_TO_JSON_INTEGER_ERROR";
27extern const isc::log::MessageID DATABASE_TO_JSON_UNKNOWN_TYPE_ERROR = "DATABASE_TO_JSON_UNKNOWN_TYPE_ERROR";
28
29} // namespace db
30} // namespace isc
31
32namespace {
33
34const char* values[] = {
35 "DATABASE_INVALID_ACCESS", "invalid database access string: %1",
36 "DATABASE_MYSQL_COMMIT", "committing to MySQL database",
37 "DATABASE_MYSQL_FATAL_ERROR", "Unrecoverable MySQL error occurred: %1 for <%2>, reason: %3 (error code: %4).",
38 "DATABASE_MYSQL_INITIALIZE_SCHEMA", "Initializing the MySQL schema with command: %1.",
39 "DATABASE_MYSQL_ROLLBACK", "rolling back MySQL database",
40 "DATABASE_MYSQL_START_TRANSACTION", "starting new MySQL transaction",
41 "DATABASE_PGSQL_COMMIT", "committing to PostgreSQL database",
42 "DATABASE_PGSQL_CREATE_SAVEPOINT", "creating a new PostgreSQL savepoint: %1",
43 "DATABASE_PGSQL_DEALLOC_ERROR", "An error occurred deallocating SQL statements while closing the PostgreSQL lease database: %1",
44 "DATABASE_PGSQL_FATAL_ERROR", "Unrecoverable PostgreSQL error occurred: Statement: <%1>, reason: %2 (error code: %3).",
45 "DATABASE_PGSQL_INITIALIZE_SCHEMA", "Initializing the PostgreSQL schema with command: %1.",
46 "DATABASE_PGSQL_ROLLBACK", "rolling back PostgreSQL database",
47 "DATABASE_PGSQL_ROLLBACK_SAVEPOINT", "rolling back PostgreSQL database to savepoint: $1",
48 "DATABASE_PGSQL_START_TRANSACTION", "starting a new PostgreSQL transaction",
49 "DATABASE_PGSQL_TCP_USER_TIMEOUT_UNSUPPORTED", "tcp_user_timeout is not supported in this PostgreSQL version",
50 "DATABASE_TO_JSON_BOOLEAN_ERROR", "Internal logic error: invalid boolean value found in database connection parameters: %1=%2",
51 "DATABASE_TO_JSON_INTEGER_ERROR", "Internal logic error: invalid integer value found in database connection parameters: %1=%2",
52 "DATABASE_TO_JSON_UNKNOWN_TYPE_ERROR", "Internal logic error: unknown element found in database connection parameters: %1=%2",
53 NULL
54};
55
56const isc::log::MessageInitializer initializer(values);
57
58} // Anonymous namespace
59
Initialize Message Dictionary.
const isc::log::MessageID DATABASE_PGSQL_FATAL_ERROR
Definition db_messages.h:20
const isc::log::MessageID DATABASE_MYSQL_COMMIT
Definition db_messages.h:12
const isc::log::MessageID DATABASE_MYSQL_INITIALIZE_SCHEMA
Definition db_messages.h:14
const isc::log::MessageID DATABASE_PGSQL_INITIALIZE_SCHEMA
Definition db_messages.h:21
const isc::log::MessageID DATABASE_PGSQL_COMMIT
Definition db_messages.h:17
const isc::log::MessageID DATABASE_TO_JSON_UNKNOWN_TYPE_ERROR
Definition db_messages.h:28
const isc::log::MessageID DATABASE_PGSQL_CREATE_SAVEPOINT
Definition db_messages.h:18
const isc::log::MessageID DATABASE_INVALID_ACCESS
Definition db_messages.h:11
const isc::log::MessageID DATABASE_PGSQL_ROLLBACK_SAVEPOINT
Definition db_messages.h:23
const isc::log::MessageID DATABASE_MYSQL_ROLLBACK
Definition db_messages.h:15
const isc::log::MessageID DATABASE_TO_JSON_INTEGER_ERROR
Definition db_messages.h:27
const isc::log::MessageID DATABASE_PGSQL_DEALLOC_ERROR
Definition db_messages.h:19
const isc::log::MessageID DATABASE_PGSQL_START_TRANSACTION
Definition db_messages.h:24
const isc::log::MessageID DATABASE_PGSQL_TCP_USER_TIMEOUT_UNSUPPORTED
Definition db_messages.h:25
const isc::log::MessageID DATABASE_PGSQL_ROLLBACK
Definition db_messages.h:22
const isc::log::MessageID DATABASE_MYSQL_FATAL_ERROR
Definition db_messages.h:13
const isc::log::MessageID DATABASE_TO_JSON_BOOLEAN_ERROR
Definition db_messages.h:26
const isc::log::MessageID DATABASE_MYSQL_START_TRANSACTION
Definition db_messages.h:16
const char * MessageID
Defines the logger used by the top-level component of kea-lfc.