MCS  0.3.3-alpha7
mcstypes.hh
1 // ----------------------------------------------------------------------^
2 // Copyright (C) 2004, 2005, 2006, 2007, 2008 Giorgio Calderone
3 // (mailto: <gcalderone@ifc.inaf.it>)
4 //
5 // This file is part of MCS.
6 //
7 // MCS is free software; you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation; either version 2 of the License, or
10 // (at your option) any later version.
11 //
12 // MCS is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with MCS; if not, write to the Free Software
19 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 //
21 // ----------------------------------------------------------------------$
22 
23 
24 /* -------- FROM MYSQL DOCUMENTATION ---------
25  buffer_type Value SQL Type C Type
26 MYSQL_TYPE_TINY TINYINT char
27 MYSQL_TYPE_SHORT SMALLINT short int
28 MYSQL_TYPE_INT24 MEDIUMINT int
29 MYSQL_TYPE_LONG INT int
30 MYSQL_TYPE_LONGLONG BIGINT long long int
31 MYSQL_TYPE_FLOAT FLOAT float
32 MYSQL_TYPE_DOUBLE DOUBLE double
33 MYSQL_TYPE_TIME TIME MYSQL_TIME --> struct tm
34 MYSQL_TYPE_DATE DATE MYSQL_TIME --> struct tm
35 MYSQL_TYPE_DATETIME DATETIME MYSQL_TIME --> struct tm
36 MYSQL_TYPE_TIMESTAMP TIMESTAMP MYSQL_TIME --> struct tm
37 MYSQL_TYPE_STRING CHAR
38 MYSQL_TYPE_VAR_STRING VARCHAR
39 MYSQL_TYPE_TINY_BLOB TINYBLOB/TINYTEXT
40 MYSQL_TYPE_BLOB BLOB/TEXT memory buffer
41 MYSQL_TYPE_MEDIUM_BLOB MEDIUMBLOB/MEDIUMTEXT
42 MYSQL_TYPE_LONG_BLOB LONGBLOB/LONGTEXT
43 */
44 
45 
46 #ifndef DEF_MCSTYPES_HH
47 #define DEF_MCSTYPES_HH
48 
49 
53 enum Types {
54  TINY ,
55  SMALL ,
56  MEDIUM ,
57  INT ,
58  BIGINT ,
59  FLOAT ,
60  DOUBLE ,
61  STRING ,
62  TIME ,
63  TINY_BLOB ,
64  BLOB ,
65  POINTER
66 };
67 
68 typedef enum Types Types;
69 
70 #endif
Definition: mcs.hh:63
Definition: mcs.hh:55
Definition: mcs.hh:65
Types
Enumeration of base type for Data.
Definition: mcs.hh:54
Definition: mcs.hh:58

mcslogo

MCS (My Customizable Server) ver. 0.3.3-alpha7
Documentation generated on Mon May 28 07:39:41 UTC 2018