GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
dbstubs.h
Go to the documentation of this file.
1 #ifndef DBSTUBS_H
2 #define DBSTUBS_H
3 
5 extern int db__driver_bind_update(dbCursor *);
7 extern int db__driver_close_database(void);
8 extern int db__driver_create_index(dbIndex *);
9 extern int db__driver_create_table(dbTable *);
11 extern int db__driver_delete(dbCursor *);
15 extern int db__driver_drop_index(dbString *);
16 extern int db__driver_drop_table(dbString *);
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 **);
22 extern int db__driver_insert(dbCursor *);
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 *);
27 extern int db__driver_open_select_cursor(dbString *, dbCursor *, int);
30 extern int db__driver_grant_on_table(dbString *, int, int);
31 extern int db__driver_get_num_rows(dbCursor *);
32 extern int db__driver_begin_transaction(void);
33 extern int db__driver_commit_transaction(void);
34 extern int db__driver_update(dbCursor *);
35 
36 #ifdef DB_DRIVER_C
51 int (*db_driver_fetch) (dbCursor *, int, int *) = db__driver_fetch;
53 int (*db_driver_finish) (void) = db__driver_finish;
54 int (*db_driver_init) (int, char **) = db__driver_init;
57 int (*db_driver_list_tables) (dbString **, int *, int) = db__driver_list_tables;
63 int (*db_driver_grant_on_table) (dbString *, int, int) = db__driver_grant_on_table;
67 int (*db_driver_update) (dbCursor *) = db__driver_update;
68 #else
69 extern int (*db_driver_add_column) (dbString *, dbColumn *);
70 extern int (*db_driver_bind_update) (dbCursor *);
71 extern int (*db_driver_close_cursor) (dbCursor *);
72 extern int (*db_driver_close_database) (void);
73 extern int (*db_driver_create_index) (dbIndex *);
74 extern int (*db_driver_create_table) (dbTable *);
75 extern int (*db_driver_create_database) (dbHandle *);
76 extern int (*db_driver_delete) (dbCursor *);
77 extern int (*db_driver_delete_database) (dbHandle *);
78 extern int (*db_driver_describe_table) (dbString *, dbTable **);
79 extern int (*db_driver_drop_column) (dbString *, dbString *);
80 extern int (*db_driver_drop_index) (dbString *);
81 extern int (*db_driver_drop_table) (dbString *);
82 extern int (*db_driver_execute_immediate) (dbString *);
83 extern int (*db_driver_fetch) (dbCursor *, int, int *);
84 extern int (*db_driver_find_database) (dbHandle *, int *);
85 extern int (*db_driver_finish) (void);
86 extern int (*db_driver_init) (int, char **);
87 extern int (*db_driver_insert) (dbCursor *);
88 extern int (*db_driver_list_indexes) (dbString *, dbIndex **, int *);
89 extern int (*db_driver_list_tables) (dbString **, int *, int);
90 extern int (*db_driver_list_databases) (dbString *, int, dbHandle **, int *);
91 extern int (*db_driver_open_insert_cursor) (dbCursor *);
92 extern int (*db_driver_open_select_cursor) (dbString *, dbCursor *, int);
93 extern int (*db_driver_open_update_cursor) (dbString *, dbString *, dbCursor *, int);
94 extern int (*db_driver_open_database) (dbHandle *);
95 extern int (*db_driver_grant_on_table) (dbString *, int, int);
96 extern int (*db_driver_get_num_rows) (dbCursor *);
97 extern int (*db_driver_begin_transaction) (void);
98 extern int (*db_driver_commit_transaction) (void);
99 extern int (*db_driver_update) (dbCursor *);
100 #endif
101 
102 #endif
int db__driver_list_indexes(dbString *, dbIndex **, int *)
Definition: list_index.c:5
int db__driver_open_database(dbHandle *)
Definition: opendb.c:4
int(* db_driver_create_database)(dbHandle *)
int(* db_driver_begin_transaction)(void)
int(* db_driver_execute_immediate)(dbString *)
int db__driver_finish(void)
Definition: finish.c:4
int db__driver_create_database(dbHandle *)
Definition: createdb.c:4
int db__driver_delete(dbCursor *)
int db__driver_drop_column(dbString *, dbString *)
Definition: drop_col.c:4
int(* db_driver_open_insert_cursor)(dbCursor *)
int db__driver_bind_update(dbCursor *)
Definition: bindupdate.c:10
int db__driver_create_table(dbTable *)
Definition: create_table.c:4
int(* db_driver_open_select_cursor)(dbString *, dbCursor *, int)
int(* db_driver_commit_transaction)(void)
int db__driver_get_num_rows(dbCursor *)
Definition: rows.c:4
int db__driver_grant_on_table(dbString *, int, int)
Definition: priv.c:4
int db__driver_close_cursor(dbCursor *)
Definition: close_cursor.c:8
int(* db_driver_drop_column)(dbString *, dbString *)
int db__driver_drop_index(dbString *)
Definition: drop_index.c:4
int db__driver_open_update_cursor(dbString *, dbString *, dbCursor *, int)
Definition: open_update.c:5
int db__driver_delete_database(dbHandle *)
Definition: deletedb.c:4
int(* db_driver_add_column)(dbString *, dbColumn *)
int(* db_driver_close_database)(void)
int db__driver_add_column(dbString *, dbColumn *)
Definition: add_col.c:7
int(* db_driver_list_indexes)(dbString *, dbIndex **, int *)
int db__driver_list_tables(dbString **, int *, int)
Definition: list_tables.c:4
int(* db_driver_drop_index)(dbString *)
int(* db_driver_drop_table)(dbString *)
int db__driver_open_insert_cursor(dbCursor *)
Definition: open_insert.c:4
int db__driver_close_database(void)
Definition: closedb.c:4
int db__driver_open_select_cursor(dbString *, dbCursor *, int)
Definition: open_select.c:5
int(* db_driver_list_databases)(dbString *, int, dbHandle **, int *)
int(* db_driver_open_update_cursor)(dbString *, dbString *, dbCursor *, int)
int(* db_driver_delete_database)(dbHandle *)
int(* db_driver_create_index)(dbIndex *)
int(* db_driver_insert)(dbCursor *)
int(* db_driver_delete)(dbCursor *)
int db__driver_list_databases(dbString *, int, dbHandle **, int *)
Definition: listdb.c:5
int db__driver_insert(dbCursor *)
Definition: insert.c:4
int db__driver_describe_table(dbString *, dbTable **)
Definition: desc_table.c:4
int db__driver_commit_transaction(void)
Definition: transaction.c:12
int db__driver_begin_transaction(void)
Definition: transaction.c:5
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_execute_immediate(dbString *)
Definition: execute.c:4
int(* db_driver_list_tables)(dbString **, int *, int)
int db__driver_drop_table(dbString *)
Definition: drop_table.c:4
int(* db_driver_open_database)(dbHandle *)
int(* db_driver_bind_update)(dbCursor *)
int(* db_driver_describe_table)(dbString *, dbTable **)
int(* db_driver_close_cursor)(dbCursor *)
int(* db_driver_fetch)(dbCursor *, int, int *)
int db__driver_fetch(dbCursor *, int, int *)
Definition: fetch.c:4
int(* db_driver_get_num_rows)(dbCursor *)
int db__driver_update(dbCursor *)
int(* db_driver_update)(dbCursor *)
int db__driver_find_database(dbHandle *, int *)
Definition: finddb.c:4
int(* db_driver_create_table)(dbTable *)
int db__driver_create_index(dbIndex *)
Definition: create_index.c:4
int db__driver_init(int, char **)
int(* db_driver_finish)(void)