The Battle for Wesnoth
1.15.8+dev
modules
mariadbpp
include
mariadb++
types.hpp
Go to the documentation of this file.
1
//
2
// M A R I A D B + +
3
//
4
// Copyright Sylvain Rochette Langlois 2013,
5
// The ViaDuck Project 2016 - 2018.
6
// Distributed under the Boost Software License, Version 1.0.
7
// (See accompanying file LICENSE or copy at
8
// http://www.boost.org/LICENSE_1_0.txt)
9
10
#ifndef _MARIADB_TYPES_HPP_
11
#define _MARIADB_TYPES_HPP_
12
13
#include <mysql.h>
14
#include <memory>
15
16
namespace
mariadb
{
17
//
18
// Default types
19
//
20
typedef
unsigned
char
u8
;
21
typedef
unsigned
short
u16
;
22
typedef
unsigned
int
u32
;
23
typedef
signed
char
s8
;
24
typedef
signed
short
s16
;
25
typedef
signed
int
s32
;
26
typedef
float
f32
;
27
typedef
double
f64
;
28
typedef
long
double
f128
;
29
30
#if defined(_MSC_VER) || defined(__BORLANDC__)
31
typedef
unsigned
__int64
u64
;
32
typedef
signed
__int64
s64
;
33
#else
34
typedef
unsigned
long
long
u64
;
35
typedef
signed
long
long
s64
;
36
#endif
37
38
typedef
u64
handle
;
39
40
//
41
// Value type
42
//
43
namespace
value {
44
enum
type
{
45
null
= 0,
46
blob
,
47
data
,
48
date
,
49
date_time
,
50
time
,
51
string
,
52
boolean
,
53
decimal
,
54
unsigned8
,
55
signed8
,
56
unsigned16
,
57
signed16
,
58
unsigned32
,
59
signed32
,
60
unsigned64
,
61
signed64
,
62
float32
,
63
double64
,
64
enumeration
65
};
66
}
67
68
//
69
// Isolation level
70
//
71
namespace
isolation {
72
enum
level
{
repeatable_read
= 0,
read_committed
,
read_uncommitted
,
serializable
};
73
}
74
75
//
76
// Stream
77
//
78
typedef
std::shared_ptr<std::istream>
stream_ref
;
79
}
80
81
#if !defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID > 80000
82
// Assume MySQL Community 8.0+
83
typedef
bool
my_bool;
84
#endif
85
86
#endif
mariadb::value::enumeration
Definition:
types.hpp:64
mariadb::s32
signed int s32
Definition:
types.hpp:25
mariadb::value::blob
Definition:
types.hpp:46
mariadb::isolation::serializable
Definition:
types.hpp:72
mariadb::value::double64
Definition:
types.hpp:63
mariadb::value::signed32
Definition:
types.hpp:59
mariadb::f64
double f64
Definition:
types.hpp:27
mariadb::value::unsigned32
Definition:
types.hpp:58
mariadb::value::unsigned16
Definition:
types.hpp:56
mariadb::isolation::read_committed
Definition:
types.hpp:72
mariadb
Definition:
account.hpp:18
mariadb::value::signed8
Definition:
types.hpp:55
mariadb::value::type
type
Definition:
types.hpp:44
mariadb::value::data
Definition:
types.hpp:47
mariadb::value::unsigned8
Definition:
types.hpp:54
mariadb::f32
float f32
Definition:
types.hpp:26
mariadb::value::decimal
Definition:
types.hpp:53
mariadb::stream_ref
std::shared_ptr< std::istream > stream_ref
Definition:
types.hpp:78
mariadb::f128
long double f128
Definition:
types.hpp:28
mariadb::isolation::repeatable_read
Definition:
types.hpp:72
mariadb::handle
u64 handle
Definition:
types.hpp:38
mariadb::u8
unsigned char u8
Definition:
types.hpp:20
mariadb::value::date
Definition:
types.hpp:48
mariadb::u16
unsigned short u16
Definition:
types.hpp:21
mariadb::s64
signed long long s64
Definition:
types.hpp:35
mariadb::value::null
Definition:
types.hpp:45
mariadb::value::boolean
Definition:
types.hpp:52
mariadb::value::float32
Definition:
types.hpp:62
mariadb::value::time
Definition:
types.hpp:50
mariadb::value::date_time
Definition:
types.hpp:49
mariadb::value::string
Definition:
types.hpp:51
mariadb::isolation::read_uncommitted
Definition:
types.hpp:72
mariadb::value::signed64
Definition:
types.hpp:61
mariadb::value::unsigned64
Definition:
types.hpp:60
mariadb::s16
signed short s16
Definition:
types.hpp:24
mariadb::value::signed16
Definition:
types.hpp:57
mariadb::u64
unsigned long long u64
Definition:
types.hpp:34
mariadb::u32
unsigned int u32
Definition:
types.hpp:22
mariadb::isolation::level
level
Definition:
types.hpp:72
mariadb::s8
signed char s8
Definition:
types.hpp:23
Generated by
1.8.13