1 
2 /*****************************************************************************
3 *
4 * MODULE:       OGR driver
5 *
6 * AUTHOR(S):    Radim Blazek
7 *               Some updates by Martin Landa <landa.martin gmail.com>
8 *
9 * PURPOSE:      DB driver for OGR sources
10 *
11 * COPYRIGHT:    (C) 2004-2009 by the GRASS Development Team
12 *
13 *               This program is free software under the GNU General Public
14 *   	    	License (>=v2). Read the file COPYING that comes with GRASS
15 *   	    	for details.
16 *
17 *****************************************************************************/
18 
19 /* cursor */
20 typedef struct
21 {
22     dbToken token;
23     OGRLayerH hLayer;		/* current OGR layer */
24     OGRFeatureH hFeature;	/* current feature */
25     int type;			/* type of cursor: SELECT, UPDATE, INSERT */
26     int *cols;			/* 1 type is known, 0 type is unknown */
27     int ncols;			/* num columns (without fid column) */
28 } cursor;
29 
30 /* column info (see execute.c) */
31 typedef struct
32 {
33     char *name;
34     char *value;
35     int  index;
36     int  qindex; /* query column */
37     OGRFieldType type;
38 } column_info;
39 
40 extern OGRDataSourceH hDs;
41 extern dbString *errMsg;
42