2019-01-25 12:18:29 +01:00
|
|
|
// Copyright (C) 2018-2019 Internet Systems Consortium, Inc. ("ISC")
|
2018-09-18 08:36:53 +02:00
|
|
|
//
|
|
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
#ifndef MYSQL_CONSTANTS_H
|
|
|
|
#define MYSQL_CONSTANTS_H
|
|
|
|
|
|
|
|
#include <mysql.h>
|
|
|
|
|
|
|
|
namespace isc {
|
|
|
|
namespace db {
|
|
|
|
|
|
|
|
/// @name MySQL constants.
|
|
|
|
///
|
|
|
|
//@{
|
|
|
|
|
|
|
|
/// @brief MySQL false value.
|
|
|
|
const my_bool MLM_FALSE = 0;
|
|
|
|
|
|
|
|
/// @brief MySQL true value.
|
|
|
|
const my_bool MLM_TRUE = 1;
|
|
|
|
|
|
|
|
/// @brief MySQL fetch success code.
|
|
|
|
const int MLM_MYSQL_FETCH_SUCCESS = 0;
|
|
|
|
|
|
|
|
/// @brief MySQL fetch failure code.
|
|
|
|
const int MLM_MYSQL_FETCH_FAILURE = 0;
|
|
|
|
|
|
|
|
//@}
|
|
|
|
|
|
|
|
/// @name Current database schema version values.
|
|
|
|
//@{
|
2019-01-25 12:18:29 +01:00
|
|
|
const uint32_t MYSQL_SCHEMA_VERSION_MAJOR = 8;
|
2018-09-18 08:36:53 +02:00
|
|
|
const uint32_t MYSQL_SCHEMA_VERSION_MINOR = 0;
|
|
|
|
|
|
|
|
//@}
|
|
|
|
|
|
|
|
|
|
|
|
} // end of namespace isc::db
|
|
|
|
} // end of namespace isc
|
|
|
|
|
|
|
|
#endif
|