Kea: db_messages.cc Source File

| Kea 3.2.0-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_INITIAL_CONNECTION_FAIL = "DATABASE_MYSQL_INITIAL_CONNECTION_FAIL";
16extern const isc::log::MessageID DATABASE_MYSQL_NO_INIT_NO_ADMIN = "DATABASE_MYSQL_NO_INIT_NO_ADMIN";
17extern const isc::log::MessageID DATABASE_MYSQL_NO_INIT_READONLY = "DATABASE_MYSQL_NO_INIT_READONLY";
18extern const isc::log::MessageID DATABASE_MYSQL_ROLLBACK = "DATABASE_MYSQL_ROLLBACK";
19extern const isc::log::MessageID DATABASE_MYSQL_START_TRANSACTION = "DATABASE_MYSQL_START_TRANSACTION";
20extern const isc::log::MessageID DATABASE_PGSQL_COMMIT = "DATABASE_PGSQL_COMMIT";
21extern const isc::log::MessageID DATABASE_PGSQL_CREATE_SAVEPOINT = "DATABASE_PGSQL_CREATE_SAVEPOINT";
22extern const isc::log::MessageID DATABASE_PGSQL_DEALLOC_ERROR = "DATABASE_PGSQL_DEALLOC_ERROR";
23extern const isc::log::MessageID DATABASE_PGSQL_FATAL_ERROR = "DATABASE_PGSQL_FATAL_ERROR";
24extern const isc::log::MessageID DATABASE_PGSQL_INITIALIZE_SCHEMA = "DATABASE_PGSQL_INITIALIZE_SCHEMA";
25extern const isc::log::MessageID DATABASE_PGSQL_INITIAL_CONNECTION_FAIL = "DATABASE_PGSQL_INITIAL_CONNECTION_FAIL";
26extern const isc::log::MessageID DATABASE_PGSQL_NO_INIT_NO_ADMIN = "DATABASE_PGSQL_NO_INIT_NO_ADMIN";
27extern const isc::log::MessageID DATABASE_PGSQL_NO_INIT_READONLY = "DATABASE_PGSQL_NO_INIT_READONLY";
28extern const isc::log::MessageID DATABASE_PGSQL_ROLLBACK = "DATABASE_PGSQL_ROLLBACK";
29extern const isc::log::MessageID DATABASE_PGSQL_ROLLBACK_SAVEPOINT = "DATABASE_PGSQL_ROLLBACK_SAVEPOINT";
30extern const isc::log::MessageID DATABASE_PGSQL_START_TRANSACTION = "DATABASE_PGSQL_START_TRANSACTION";
31extern const isc::log::MessageID DATABASE_PGSQL_TCP_USER_TIMEOUT_UNSUPPORTED = "DATABASE_PGSQL_TCP_USER_TIMEOUT_UNSUPPORTED";
32extern const isc::log::MessageID DATABASE_TO_JSON_BOOLEAN_ERROR = "DATABASE_TO_JSON_BOOLEAN_ERROR";
33extern const isc::log::MessageID DATABASE_TO_JSON_INTEGER_ERROR = "DATABASE_TO_JSON_INTEGER_ERROR";
34extern const isc::log::MessageID DATABASE_TO_JSON_UNKNOWN_TYPE_ERROR = "DATABASE_TO_JSON_UNKNOWN_TYPE_ERROR";
35
36} // namespace db
37} // namespace isc
38
39namespace {
40
41const char* values[] = {
42 "CONFIG_BACKENDS_REGISTERED", "the following config backend types are available: %1",
43 "DATABASE_INVALID_ACCESS", "invalid database access string: %1",
44 "DATABASE_MYSQL_COMMIT", "committing to MySQL database",
45 "DATABASE_MYSQL_FATAL_ERROR", "Unrecoverable MySQL error occurred: %1 for <%2>, reason: %3 (error code: %4).",
46 "DATABASE_MYSQL_INITIALIZE_SCHEMA", "Initializing the MySQL schema with command: %1.",
47 "DATABASE_MYSQL_INITIAL_CONNECTION_FAIL", "The connection to the MySQL server is not yet established. Reason: %1",
48 "DATABASE_MYSQL_NO_INIT_NO_ADMIN", "Not attempting to initialize the MySQL schema. kea-admin seems to be missing.",
49 "DATABASE_MYSQL_NO_INIT_READONLY", "Not attempting to initialize the MySQL schema. Kea has the database configured as readonly.",
50 "DATABASE_MYSQL_ROLLBACK", "rolling back MySQL database",
51 "DATABASE_MYSQL_START_TRANSACTION", "starting new MySQL transaction",
52 "DATABASE_PGSQL_COMMIT", "committing to PostgreSQL database",
53 "DATABASE_PGSQL_CREATE_SAVEPOINT", "creating a new PostgreSQL savepoint: %1",
54 "DATABASE_PGSQL_DEALLOC_ERROR", "An error occurred deallocating SQL statements while closing the PostgreSQL lease database: %1",
55 "DATABASE_PGSQL_FATAL_ERROR", "Unrecoverable PostgreSQL error occurred: Statement: <%1>, reason: %2 (error code: %3).",
56 "DATABASE_PGSQL_INITIALIZE_SCHEMA", "Initializing the PostgreSQL schema with command: %1.",
57 "DATABASE_PGSQL_INITIAL_CONNECTION_FAIL", "The connection to the PostgreSQL server is not yet established. Reason: %1",
58 "DATABASE_PGSQL_NO_INIT_NO_ADMIN", "Not attempting to initialize the PostgreSQL schema. kea-admin seems to be missing.",
59 "DATABASE_PGSQL_NO_INIT_READONLY", "Not attempting to initialize the PostgreSQL schema. Kea has the database configured as readonly.",
60 "DATABASE_PGSQL_ROLLBACK", "rolling back PostgreSQL database",
61 "DATABASE_PGSQL_ROLLBACK_SAVEPOINT", "rolling back PostgreSQL database to savepoint: $1",
62 "DATABASE_PGSQL_START_TRANSACTION", "starting a new PostgreSQL transaction",
63 "DATABASE_PGSQL_TCP_USER_TIMEOUT_UNSUPPORTED", "tcp_user_timeout is not supported in this PostgreSQL version",
64 "DATABASE_TO_JSON_BOOLEAN_ERROR", "Internal logic error: invalid boolean value found in database connection parameters: %1=%2",
65 "DATABASE_TO_JSON_INTEGER_ERROR", "Internal logic error: invalid integer value found in database connection parameters: %1=%2",
66 "DATABASE_TO_JSON_UNKNOWN_TYPE_ERROR", "Internal logic error: unknown element found in database connection parameters: %1=%2",
67 NULL
68};
69
70const isc::log::MessageInitializer initializer(values);
71
72} // Anonymous namespace
73
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_MYSQL_INITIAL_CONNECTION_FAIL
const isc::log::MessageID DATABASE_MYSQL_INITIAL_CONNECTION_FAIL
Definition db_messages.h:16
isc::db::DATABASE_PGSQL_FATAL_ERROR
const isc::log::MessageID DATABASE_PGSQL_FATAL_ERROR
Definition db_messages.h:24
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::DATABASE_PGSQL_INITIAL_CONNECTION_FAIL
const isc::log::MessageID DATABASE_PGSQL_INITIAL_CONNECTION_FAIL
Definition db_messages.h:26
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:25
isc::db::DATABASE_PGSQL_COMMIT
const isc::log::MessageID DATABASE_PGSQL_COMMIT
Definition db_messages.h:21
isc::db::DATABASE_TO_JSON_UNKNOWN_TYPE_ERROR
const isc::log::MessageID DATABASE_TO_JSON_UNKNOWN_TYPE_ERROR
Definition db_messages.h:35
isc::db::DATABASE_MYSQL_NO_INIT_READONLY
const isc::log::MessageID DATABASE_MYSQL_NO_INIT_READONLY
Definition db_messages.h:18
isc::db::DATABASE_PGSQL_CREATE_SAVEPOINT
const isc::log::MessageID DATABASE_PGSQL_CREATE_SAVEPOINT
Definition db_messages.h:22
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:30
isc::db::DATABASE_MYSQL_NO_INIT_NO_ADMIN
const isc::log::MessageID DATABASE_MYSQL_NO_INIT_NO_ADMIN
Definition db_messages.h:17
isc::db::DATABASE_MYSQL_ROLLBACK
const isc::log::MessageID DATABASE_MYSQL_ROLLBACK
Definition db_messages.h:19
isc::db::DATABASE_TO_JSON_INTEGER_ERROR
const isc::log::MessageID DATABASE_TO_JSON_INTEGER_ERROR
Definition db_messages.h:34
isc::db::DATABASE_PGSQL_DEALLOC_ERROR
const isc::log::MessageID DATABASE_PGSQL_DEALLOC_ERROR
Definition db_messages.h:23
isc::db::DATABASE_PGSQL_NO_INIT_READONLY
const isc::log::MessageID DATABASE_PGSQL_NO_INIT_READONLY
Definition db_messages.h:28
isc::db::DATABASE_PGSQL_START_TRANSACTION
const isc::log::MessageID DATABASE_PGSQL_START_TRANSACTION
Definition db_messages.h:31
isc::db::DATABASE_PGSQL_NO_INIT_NO_ADMIN
const isc::log::MessageID DATABASE_PGSQL_NO_INIT_NO_ADMIN
Definition db_messages.h:27
isc::db::DATABASE_PGSQL_TCP_USER_TIMEOUT_UNSUPPORTED
const isc::log::MessageID DATABASE_PGSQL_TCP_USER_TIMEOUT_UNSUPPORTED
Definition db_messages.h:32
isc::db::DATABASE_PGSQL_ROLLBACK
const isc::log::MessageID DATABASE_PGSQL_ROLLBACK
Definition db_messages.h:29
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:33
isc::db::DATABASE_MYSQL_START_TRANSACTION
const isc::log::MessageID DATABASE_MYSQL_START_TRANSACTION
Definition db_messages.h:20
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 check_exists_add.cc:18