NCBI C++ ToolKit
data.h
Go to the documentation of this file.

Go to the SVN repository for this file.

1 /* FreeTDS - Library of routines accessing Sybase and Microsoft databases
2  * Copyright (C) 2014 Frediano Ziglio
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19 
20 #ifndef _freetds_data_h_
21 #define _freetds_data_h_
22 
23 #ifndef _tds_h_
24 # error Include tds.h before data.h
25 #endif
26 
27 #include <freetds/pushvis.h>
28 
29 #define TDS_COMMON_FUNCS(name) \
30 { \
31  tds_ ## name ## _get_info, \
32  tds_ ## name ## _get, \
33  tds_ ## name ## _row_len, \
34  tds_ ## name ## _put_info_len, \
35  tds_ ## name ## _put_info, \
36  tds_ ## name ## _put, \
37  TDS_EXTRA_CHECK(tds_ ## name ## _check) \
38 }
39 
47 
55 
63 
64 #define tds_variant_get_info tds_generic_get_info
65 #define tds_variant_row_len tds_generic_row_len
67 #define tds_variant_put_info_len tds_generic_put_info_len
71 
75 #define tds_msdatetime_put_info_len tds_generic_put_info_len
79 
82 #define tds_clrudt_get tds_generic_get
83 #define tds_clrudt_put_info_len tds_generic_put_info_len
85 #define tds_clrudt_put tds_generic_put
87 
95 
96 /**
97  * If TDS_DONT_DEFINE_DEFAULT_FUNCTIONS is no defined
98  * define default implementations for these tables
99  */
100 #ifndef TDS_DONT_DEFINE_DEFAULT_FUNCTIONS
101 # define TDS_DEFINE_DEFAULT_FUNCS(name) \
102  const TDSCOLUMNFUNCS tds_ ## name ## _funcs = TDS_COMMON_FUNCS(name)
103 
111 #endif
112 
113 #include <freetds/popvis.h>
114 
115 #endif
tds_func_put_info_len tds_numeric_put_info_len
Definition: data.h:59
tds_func_put_info tds_invalid_put_info
Definition: data.h:44
tds_func_row_len tds_invalid_row_len
Definition: data.h:41
tds_func_get_data tds_msdatetime_get
Definition: data.h:74
tds_func_put_info tds_variant_put_info
Definition: data.h:68
tds_func_put_data tds_variant_put
Definition: data.h:69
tds_func_put_info tds_numeric_put_info
Definition: data.h:60
tds_func_get_data tds_sybbigtime_get
Definition: data.h:90
tds_func_get_info tds_generic_get_info
Definition: data.h:48
tds_func_check tds_msdatetime_check
Definition: data.h:78
tds_func_put_info tds_msdatetime_put_info
Definition: data.h:76
tds_func_get_info tds_msdatetime_get_info
Definition: data.h:72
tds_func_get_info tds_clrudt_get_info
Definition: data.h:80
tds_func_get_info tds_invalid_get_info
Definition: data.h:40
tds_func_put_info tds_generic_put_info
Definition: data.h:52
tds_func_get_data tds_generic_get
Definition: data.h:50
tds_func_check tds_invalid_check
Definition: data.h:46
tds_func_put_info tds_clrudt_put_info
Definition: data.h:84
tds_func_put_data tds_sybbigtime_put
Definition: data.h:93
tds_func_get_data tds_variant_get
Definition: data.h:66
tds_func_get_info tds_numeric_get_info
Definition: data.h:56
tds_func_row_len tds_generic_row_len
Definition: data.h:49
tds_func_put_info_len tds_generic_put_info_len
Definition: data.h:51
tds_func_check tds_generic_check
Definition: data.h:54
tds_func_put_info_len tds_sybbigtime_put_info_len
Definition: data.h:91
tds_func_row_len tds_numeric_row_len
Definition: data.h:57
tds_func_check tds_numeric_check
Definition: data.h:62
tds_func_get_data tds_invalid_get
Definition: data.h:42
tds_func_put_data tds_msdatetime_put
Definition: data.h:77
tds_func_put_info_len tds_invalid_put_info_len
Definition: data.h:43
tds_func_put_data tds_generic_put
Definition: data.h:53
tds_func_put_info tds_sybbigtime_put_info
Definition: data.h:92
#define TDS_DEFINE_DEFAULT_FUNCS(name)
If TDS_DONT_DEFINE_DEFAULT_FUNCTIONS is no defined define default implementations for these tables.
Definition: data.h:101
tds_func_put_data tds_numeric_put
Definition: data.h:61
tds_func_check tds_clrudt_check
Definition: data.h:86
tds_func_put_data tds_invalid_put
Definition: data.h:45
tds_func_check tds_sybbigtime_check
Definition: data.h:94
tds_func_row_len tds_clrudt_row_len
Definition: data.h:81
tds_func_check tds_variant_check
Definition: data.h:70
tds_func_row_len tds_msdatetime_row_len
Definition: data.h:73
tds_func_row_len tds_sybbigtime_row_len
Definition: data.h:89
tds_func_get_info tds_sybbigtime_get_info
Definition: data.h:88
tds_func_get_data tds_numeric_get
Definition: data.h:58
TDSRET tds_func_get_data(TDSSOCKET *tds, TDSCOLUMN *col)
Definition: tds.h:701
TDSRET tds_func_put_info(TDSSOCKET *tds, TDSCOLUMN *col)
Definition: tds.h:704
unsigned tds_func_put_info_len(TDSSOCKET *tds, TDSCOLUMN *col)
Definition: tds.h:703
TDSRET tds_func_get_info(TDSSOCKET *tds, TDSCOLUMN *col)
Definition: tds.h:700
TDSRET tds_func_put_data(TDSSOCKET *tds, TDSCOLUMN *col, int bcp7)
Definition: tds.h:705
TDS_INT tds_func_row_len(TDSCOLUMN *col)
Definition: tds.h:702
int tds_func_check(const TDSCOLUMN *col)
Definition: tds.h:706
Modified on Tue Jul 16 13:23:13 2024 by modify_doxy.py rev. 669887