]>
git.saurik.com Git - wxWidgets.git/blob - src/iodbc/hdbc.h
6 * Data source connect object management functions
8 * The iODBC driver manager.
10 * Copyright (C) 1995 by Ke Jin <kejin@empress.com>
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Library General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with this library; if not, write to the Free
24 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
31 int type
; /* must be 1st field */
35 HENV genv
; /* back point to global env object */
37 HDBC dhdbc
; /* driver's private dbc */
38 HENV henv
; /* back point to instant env object */
39 HSTMT hstmt
; /* list of statement object handle(s) */
59 int trace
; /* trace flag */
63 tstm
; /* trace stream */
69 * - ODBC applications can see address of driver manager's
70 * connection object, i.e connection handle -- a void pointer,
71 * but not detail of it. ODBC applications can neither see
72 * detail driver's connection object nor its address.
74 * - ODBC driver manager knows its own connection objects and
75 * exposes their address to an ODBC application. Driver manager
76 * also knows address of driver's connection objects and keeps
77 * it via dhdbc field in driver manager's connection object.
79 * - ODBC driver exposes address of its own connection object to
80 * driver manager without detail.
82 * - Applications can get driver's connection object handle by
83 * SQLGetInfo() with fInfoType equals to SQL_DRIVER_HDBC.