Kea: db_messages.cc Source File

| Kea 3.0.2-git

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