FreeTDS API: include/sqldb.h Source File

FreeTDS API

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
sqldb.h
1 /* FreeTDS - Library of routines accessing Sybase and Microsoft databases
2 * Copyright (C) 1998-1999 Brian Bruns
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 SQLDB_h
21 #define SQLDB_h
22
23 #include "./sybdb.h"
24
25 #define SQLCHAR SYBCHAR
26 #define SQLVARCHAR SYBVARCHAR
27 #define SQLINTN SYBINTN
28 #define SQLINT1 SYBINT1
29 #define SQLINT2 SYBINT2
30 #define SQLINT4 SYBINT4
31 #define SQLINT8 SYBINT8
32 #define SQLFLT8 SYBFLT8
33 #define SQLDATETIME SYBDATETIME
34 #define SQLBIT SYBBIT
35 #define SQLTEXT SYBTEXT
36 #define SQLIMAGE SYBIMAGE
37 #define SQLMONEY4 SYBMONEY4
38 #define SQLMONEY SYBMONEY
39 #define SQLDATETIM4 SYBDATETIME4
40 #define SQLFLT4 SYBREAL
41 #define SQLBINARY SYBBINARY
42 #define SQLVARBINARY SYBVARBINARY
43 #define SQLNUMERIC SYBNUMERIC
44 #define SQLDECIMAL SYBDECIMAL
45 #define SQLFLTN SYBFLTN
46 #define SQLMONEYN SYBMONEYN
47 #define SQLDATETIMN SYBDATETIMN
48 #define SQLVOID SYBVOID
49
50 #define SMALLDATETIBIND SMALLDATETIMEBIND
51
52 #define DBERRHANDLE_PROC EHANDLEFUNC
53 #define DBMSGHANDLE_PROC MHANDLEFUNC
54
55 /* DB-Library errors as defined by Microsoft */
56 #define SQLEMEM SYBEMEM
57 #define SQLENULL SYBENULL
58 #define SQLENLOG SYBENLOG
59 #define SQLEPWD SYBEPWD
60 #define SQLECONN SYBECONN
61 #define SQLEDDNE SYBEDDNE
62 #define SQLENULLO SYBENULLO
63 #define SQLESMSG SYBESMSG
64 #define SQLEBTOK SYBEBTOK
65 #define SQLENSPE SYBENSPE
66 #define SQLEREAD SYBEREAD
67 #define SQLECNOR SYBECNOR
68 #define SQLETSIT SYBETSIT
69 #define SQLEPARM SYBEPARM
70 #define SQLEAUTN SYBEAUTN
71 #define SQLECOFL SYBECOFL
72 #define SQLERDCN SYBERDCN
73 #define SQLEICN SYBEICN
74 #define SQLECLOS SYBECLOS
75 #define SQLENTXT SYBENTXT
76 #define SQLEDNTI SYBEDNTI
77 #define SQLETMTD SYBETMTD
78 #define SQLEASEC SYBEASEC
79 #define SQLENTLL SYBENTLL
80 #define SQLETIME SYBETIME
81 #define SQLEWRIT SYBEWRIT
82 #define SQLEMODE SYBEMODE
83 #define SQLEOOB SYBEOOB
84 #define SQLEITIM SYBEITIM
85 #define SQLEDBPS SYBEDBPS
86 #define SQLEIOPT SYBEIOPT
87 #define SQLEASNL SYBEASNL
88 #define SQLEASUL SYBEASUL
89 #define SQLENPRM SYBENPRM
90 #define SQLEDBOP SYBEDBOP
91 #define SQLENSIP SYBENSIP
92 #define SQLECNULL SYBECNULL
93 #define SQLESEOF SYBESEOF
94 #define SQLERPND SYBERPND
95 #define SQLECSYN SYBECSYN
96 #define SQLENONET SYBENONET
97 #define SQLEBTYP SYBEBTYP
98 #define SQLEABNC SYBEABNC
99 #define SQLEABMT SYBEABMT
100 #define SQLEABNP SYBEABNP
101 #define SQLEBNCR SYBEBNCR
102 #define SQLEAAMT SYBEAAMT
103 #define SQLENXID SYBENXID
104 #define SQLEIFNB SYBEIFNB
105 #define SQLEKBCO SYBEKBCO
106 #define SQLEBBCI SYBEBBCI
107 #define SQLEKBCI SYBEKBCI
108 #define SQLEBCWE SYBEBCWE
109 #define SQLEBCNN SYBEBCNN
110 #define SQLEBCOR SYBEBCOR
111 #define SQLEBCPI SYBEBCPI
112 #define SQLEBCPN SYBEBCPN
113 #define SQLEBCPB SYBEBCPB
114 #define SQLEVDPT SYBEVDPT
115 #define SQLEBIVI SYBEBIVI
116 #define SQLEBCBC SYBEBCBC
117 #define SQLEBCFO SYBEBCFO
118 #define SQLEBCVH SYBEBCVH
119 #define SQLEBCUO SYBEBCUO
120 #define SQLEBUOE SYBEBUOE
121 #define SQLEBWEF SYBEBWEF
122 #define SQLEBTMT SYBEBTMT
123 #define SQLEBEOF SYBEBEOF
124 #define SQLEBCSI SYBEBCSI
125 #define SQLEPNUL SYBEPNUL
126 #define SQLEBSKERR SYBEBSKERR
127 #define SQLEBDIO SYBEBDIO
128 #define SQLEBCNT SYBEBCNT
129 #define SQLEMDBP SYBEMDBP
130 #define SQLINIT SYBINIT
131 #define SQLCRSINV SYBCRSINV
132 #define SQLCRSCMD SYBCRSCMD
133 #define SQLCRSNOIND SYBCRSNOIND
134 #define SQLCRSDIS SYBCRSDIS
135 #define SQLCRSAGR SYBCRSAGR
136 #define SQLCRSORD SYBCRSORD
137 #define SQLCRSMEM SYBCRSMEM
138 #define SQLCRSBSKEY SYBCRSBSKEY
139 #define SQLCRSNORES SYBCRSNORES
140 #define SQLCRSVIEW SYBCRSVIEW
141 #define SQLCRSBUFR SYBCRSBUFR
142 #define SQLCRSFROWN SYBCRSFROWN
143 #define SQLCRSBROL SYBCRSBROL
144 #define SQLCRSFRAND SYBCRSFRAND
145 #define SQLCRSFLAST SYBCRSFLAST
146 #define SQLCRSRO SYBCRSRO
147 #define SQLCRSTAB SYBCRSTAB
148 #define SQLCRSUPDTAB SYBCRSUPDTAB
149 #define SQLCRSUPDNB SYBCRSUPDNB
150 #define SQLCRSVIIND SYBCRSVIIND
151 #define SQLCRSNOUPD SYBCRSNOUPD
152 #define SQLCRSOS SYBCRSOS
153 #define SQLEBCSA SYBEBCSA
154 #define SQLEBCRO SYBEBCRO
155 #define SQLEBCNE SYBEBCNE
156 #define SQLEBCSK SYBEBCSK
157 #define SQLEUVBF SYBEUVBF
158 #define SQLEBIHC SYBEBIHC
159 #define SQLEBWFF SYBEBWFF
160 #define SQLNUMVAL SYBNUMVAL
161 #define SQLEOLDVR SYBEOLDVR
162 #define SQLEBCPS SYBEBCPS
163 #define SQLEDTC SYBEDTC
164 #define SQLENOTIMPL SYBENOTIMPL
165 #define SQLENONFLOAT SYBENONFLOAT
166 #define SQLECONNFB SYBECONNFB
167
168
169 #define dbfreelogin(x) dbloginfree((x))
170
171 #define dbprocerrhandle(p, h) dberrhandle((h))
172 #define dbprocmsghandle(p, h) dbmsghandle((h))
173
174 #define dbwinexit()
175
176 static const char rcsid_sqldb_h[] = "$Id: sqldb.h,v 1.6 2009-12-02 22:35:18 jklowden Exp $";
177 static const void *const no_unused_sqldb_h_warn[] = { rcsid_sqldb_h, no_unused_sqldb_h_warn };
178
179
180 #endif
sybdb.h
Primary include file for db-lib applications.