Kea 2.7.5
mysql_constants.h
Go to the documentation of this file.
1// Copyright (C) 2018-2024 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 <mysql.h>
11
12namespace isc {
13namespace db {
14
17
18
22typedef char my_bools;
23
24#ifdef HAVE_MYSQL_MY_BOOL
26const my_bool MLM_FALSE = 0;
27
29const my_bool MLM_TRUE = 1;
30
31#else
33typedef bool my_bool;
34
36const my_bool MLM_FALSE = false;
37
39const my_bool MLM_TRUE = true;
40#endif
41
43static_assert(sizeof(my_bool) == sizeof(char), "unsupported bool size");
44
47
50
52
54
55const uint32_t MYSQL_SCHEMA_VERSION_MAJOR = 26;
56const uint32_t MYSQL_SCHEMA_VERSION_MINOR = 0;
57
59
60
61} // end of namespace isc::db
62} // end of namespace isc
63
64#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.