GRASS GIS 8 Programmer's Manual  8.4.0dev(2024)-55b2a2bccc
dbstubs.h
Go to the documentation of this file.
1 #ifndef DBSTUBS_H
2 #define DBSTUBS_H
3 
7 extern int db__driver_close_database(void);
18 extern int db__driver_fetch(dbCursor *, int, int *);
19 extern int db__driver_find_database(dbHandle *, int *);
20 extern int db__driver_finish(void);
21 extern int db__driver_init(int, char **);
23 extern int db__driver_list_indexes(dbString *, dbIndex **, int *);
24 extern int db__driver_list_tables(dbString **, int *, int);
25 extern int db__driver_list_databases(dbString *, int, dbHandle **, int *);
29  int);
31 extern int db__driver_grant_on_table(dbString *, int, int);
33 extern int db__driver_begin_transaction(void);
34 extern int db__driver_commit_transaction(void);
36 
37 #ifdef DB_DRIVER_C
53 int (*db_driver_fetch)(dbCursor *, int, int *) = db__driver_fetch;
55 int (*db_driver_finish)(void) = db__driver_finish;
56 int (*db_driver_init)(int, char **) = db__driver_init;
59  int *) = db__driver_list_indexes;
75 #else
76 extern int (*db_driver_add_column)(dbString *, dbColumn *);
77 extern int (*db_driver_bind_update)(dbCursor *);
78 extern int (*db_driver_close_cursor)(dbCursor *);
79 extern int (*db_driver_close_database)(void);
80 extern int (*db_driver_create_index)(dbIndex *);
81 extern int (*db_driver_create_table)(dbTable *);
82 extern int (*db_driver_create_database)(dbHandle *);
83 extern int (*db_driver_delete)(dbCursor *);
84 extern int (*db_driver_delete_database)(dbHandle *);
85 extern int (*db_driver_describe_table)(dbString *, dbTable **);
86 extern int (*db_driver_drop_column)(dbString *, dbString *);
87 extern int (*db_driver_drop_index)(dbString *);
88 extern int (*db_driver_drop_table)(dbString *);
89 extern int (*db_driver_execute_immediate)(dbString *);
90 extern int (*db_driver_fetch)(dbCursor *, int, int *);
91 extern int (*db_driver_find_database)(dbHandle *, int *);
92 extern int (*db_driver_finish)(void);
93 extern int (*db_driver_init)(int, char **);
94 extern int (*db_driver_insert)(dbCursor *);
95 extern int (*db_driver_list_indexes)(dbString *, dbIndex **, int *);
96 extern int (*db_driver_list_tables)(dbString **, int *, int);
97 extern int (*db_driver_list_databases)(dbString *, int, dbHandle **, int *);
98 extern int (*db_driver_open_insert_cursor)(dbCursor *);
99 extern int (*db_driver_open_select_cursor)(dbString *, dbCursor *, int);
101  int);
102 extern int (*db_driver_open_database)(dbHandle *);
103 extern int (*db_driver_grant_on_table)(dbString *, int, int);
104 extern int (*db_driver_get_num_rows)(dbCursor *);
105 extern int (*db_driver_begin_transaction)(void);
106 extern int (*db_driver_commit_transaction)(void);
107 extern int (*db_driver_update)(dbCursor *);
108 #endif
109 
110 #endif
int(* db_driver_close_cursor)(dbCursor *)
int db__driver_init(int, char **)
int(* db_driver_delete_database)(dbHandle *)
int(* db_driver_list_tables)(dbString **, int *, int)
int db__driver_delete(dbCursor *)
int db__driver_drop_table(dbString *)
int db__driver_open_update_cursor(dbString *, dbString *, dbCursor *, int)
int db__driver_close_database(void)
Definition: closedb.c:4
int db__driver_open_select_cursor(dbString *, dbCursor *, int)
int(* db_driver_insert)(dbCursor *)
int(* db_driver_commit_transaction)(void)
int(* db_driver_grant_on_table)(dbString *, int, int)
int(* db_driver_update)(dbCursor *)
int(* db_driver_open_update_cursor)(dbString *, dbString *, dbCursor *, int)
int(* db_driver_delete)(dbCursor *)
int(* db_driver_describe_table)(dbString *, dbTable **)
int db__driver_find_database(dbHandle *, int *)
int db__driver_create_index(dbIndex *)
int db__driver_commit_transaction(void)
Definition: transaction.c:12
int db__driver_drop_index(dbString *)
int db__driver_execute_immediate(dbString *)
int(* db_driver_open_database)(dbHandle *)
int db__driver_bind_update(dbCursor *)
int(* db_driver_open_select_cursor)(dbString *, dbCursor *, int)
int db__driver_describe_table(dbString *, dbTable **)
int(* db_driver_list_indexes)(dbString *, dbIndex **, int *)
int(* db_driver_drop_column)(dbString *, dbString *)
int db__driver_open_insert_cursor(dbCursor *)
int db__driver_drop_column(dbString *, dbString *)
int(* db_driver_close_database)(void)
int(* db_driver_create_index)(dbIndex *)
int db__driver_list_databases(dbString *, int, dbHandle **, int *)
int(* db_driver_execute_immediate)(dbString *)
int(* db_driver_drop_table)(dbString *)
int db__driver_list_indexes(dbString *, dbIndex **, int *)
int db__driver_list_tables(dbString **, int *, int)
int db__driver_begin_transaction(void)
Definition: transaction.c:5
int(* db_driver_bind_update)(dbCursor *)
int db__driver_update(dbCursor *)
int(* db_driver_drop_index)(dbString *)
int(* db_driver_create_database)(dbHandle *)
int(* db_driver_add_column)(dbString *, dbColumn *)
int(* db_driver_create_table)(dbTable *)
int db__driver_add_column(dbString *, dbColumn *)
int db__driver_finish(void)
Definition: finish.c:4
int(* db_driver_fetch)(dbCursor *, int, int *)
int db__driver_open_database(dbHandle *)
int db__driver_create_table(dbTable *)
int db__driver_close_cursor(dbCursor *)
int db__driver_get_num_rows(dbCursor *)
int(* db_driver_get_num_rows)(dbCursor *)
int(* db_driver_finish)(void)
int db__driver_create_database(dbHandle *)
int db__driver_insert(dbCursor *)
int db__driver_fetch(dbCursor *, int, int *)
int(* db_driver_open_insert_cursor)(dbCursor *)
int(* db_driver_begin_transaction)(void)
int(* db_driver_list_databases)(dbString *, int, dbHandle **, int *)
int(* db_driver_init)(int, char **)
int(* db_driver_find_database)(dbHandle *, int *)
int db__driver_grant_on_table(dbString *, int, int)
int db__driver_delete_database(dbHandle *)