Kea 3.3.3
mysql_constants.h
Go to the documentation of this file.
1// Copyright (C) 2018-2026 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef MYSQL_CONSTANTS_H
8#define MYSQL_CONSTANTS_H
9
10#include <cstdint>
11
12#include <mysql.h>
13
14namespace isc {
15namespace db {
16
19
20
24typedef char my_bools;
25
26#ifdef HAVE_MYSQL_MY_BOOL
28const my_bool MLM_FALSE = 0;
29
31const my_bool MLM_TRUE = 1;
32
33#else
35typedef bool my_bool;
36
38const my_bool MLM_FALSE = false;
39
41const my_bool MLM_TRUE = true;
42#endif
43
45static_assert(sizeof(my_bool) == sizeof(char), "unsupported bool size");
46
49
52
54
56
57const uint32_t MYSQL_SCHEMA_VERSION_MAJOR = 35;
58const uint32_t MYSQL_SCHEMA_VERSION_MINOR = 0;
59
61
62
63} // end of namespace isc::db
64} // end of namespace isc
65
66#endif
const my_bool MLM_FALSE
MySQL false value.
const uint32_t MYSQL_SCHEMA_VERSION_MAJOR
const uint32_t MYSQL_SCHEMA_VERSION_MINOR
const my_bool MLM_TRUE
MySQL true value.
bool my_bool
my_bool type in MySQL 8.x.
const int MLM_MYSQL_FETCH_FAILURE
MySQL fetch failure code.
char my_bools
my_bools type for vectors.
const int MLM_MYSQL_FETCH_SUCCESS
check for bool size
Defines the logger used by the top-level component of kea-lfc.