GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-36359e2344
procs.h
Go to the documentation of this file.
1 extern int db_d_add_column(void);
2 extern int db_d_bind_update(void);
3 extern int db_d_close_cursor(void);
4 extern int db_d_close_database(void);
5 extern int db_d_create_database(void);
6 extern int db_d_create_index(void);
7 extern int db_d_create_table(void);
8 extern int db_d_delete_database(void);
9 extern int db_d_describe_table(void);
10 extern int db_d_drop_column(void);
11 extern int db_d_drop_index(void);
12 extern int db_d_drop_table(void);
13 extern int db_d_execute_immediate(void);
14 extern int db_d_begin_transaction(void);
15 extern int db_d_commit_transaction(void);
16 extern int db_d_fetch(void);
17 extern int db_d_get_num_rows(void);
18 extern int db_d_find_database(void);
19 extern int db_d_grant_on_table(void);
20 extern int db_d_insert(void);
21 extern int db_d_delete(void);
22 extern int db_d_list_databases(void);
23 extern int db_d_list_indexes(void);
24 extern int db_d_list_tables(void);
25 extern int db_d_open_database(void);
26 extern int db_d_open_insert_cursor(void);
27 extern int db_d_open_select_cursor(void);
28 extern int db_d_open_update_cursor(void);
29 extern int db_d_update(void);
30 extern int db_d_version(void);
31 
32 static struct {
33  int procnum;
34  int (*routine)(void);
35 } procedure[] = {{DB_PROC_FETCH, db_d_fetch},
65  {-1, NULL}};
#define NULL
Definition: ccmath.h:32
#define DB_PROC_COMMIT_TRANSACTION
Definition: dbmi.h:51
#define DB_PROC_DROP_TABLE
Definition: dbmi.h:55
#define DB_PROC_LIST_INDEXES
Definition: dbmi.h:62
#define DB_PROC_GRANT_ON_TABLE
Definition: dbmi.h:59
#define DB_PROC_DESCRIBE_TABLE
Definition: dbmi.h:54
#define DB_PROC_OPEN_SELECT_CURSOR
Definition: dbmi.h:42
#define DB_PROC_LIST_TABLES
Definition: dbmi.h:56
#define DB_PROC_OPEN_INSERT_CURSOR
Definition: dbmi.h:41
#define DB_PROC_CREATE_INDEX
Definition: dbmi.h:61
#define DB_PROC_FETCH
Definition: dbmi.h:39
#define DB_PROC_VERSION
Definition: dbmi.h:27
#define DB_PROC_OPEN_DATABASE
Definition: dbmi.h:34
#define DB_PROC_CLOSE_DATABASE
Definition: dbmi.h:29
#define DB_PROC_INSERT
Definition: dbmi.h:40
#define DB_PROC_DROP_INDEX
Definition: dbmi.h:63
#define DB_PROC_ADD_COLUMN
Definition: dbmi.h:57
#define DB_PROC_CLOSE_CURSOR
Definition: dbmi.h:37
#define DB_PROC_DELETE_DATABASE
Definition: dbmi.h:31
#define DB_PROC_CREATE_DATABASE
Definition: dbmi.h:30
#define DB_PROC_ROWS
Definition: dbmi.h:45
#define DB_PROC_DELETE
Definition: dbmi.h:38
#define DB_PROC_BEGIN_TRANSACTION
Definition: dbmi.h:50
#define DB_PROC_EXECUTE_IMMEDIATE
Definition: dbmi.h:49
#define DB_PROC_LIST_DATABASES
Definition: dbmi.h:33
#define DB_PROC_UPDATE
Definition: dbmi.h:44
#define DB_PROC_CREATE_TABLE
Definition: dbmi.h:53
#define DB_PROC_BIND_UPDATE
Definition: dbmi.h:46
#define DB_PROC_FIND_DATABASE
Definition: dbmi.h:32
#define DB_PROC_DROP_COLUMN
Definition: dbmi.h:58
#define DB_PROC_OPEN_UPDATE_CURSOR
Definition: dbmi.h:43
int db_d_bind_update(void)
ADD.
Definition: d_bindupdate.c:25
int procnum
Definition: procs.h:33
int db_d_find_database(void)
Find database.
Definition: d_finddb.c:26
int db_d_list_indexes(void)
List indexes.
Definition: d_list_idx.c:26
int db_d_begin_transaction(void)
Begin transaction.
Definition: d_execute.c:56
int db_d_delete_database(void)
Delete database.
Definition: d_deletedb.c:26
int db_d_add_column(void)
Add column to table.
Definition: d_add_col.c:26
int db_d_update(void)
?
Definition: d_update.c:25
int db_d_create_index(void)
Create index.
Definition: d_create_idx.c:26
int db_d_list_databases(void)
List databases.
Definition: d_listdb.c:26
int db_d_version(void)
Get version info.
Definition: d_version.c:24
int db_d_drop_column(void)
Drop column.
Definition: d_drop_col.c:26
int db_d_list_tables(void)
List available tables for given connection.
Definition: d_list_tabs.c:25
int db_d_create_table(void)
Create table.
Definition: d_create_tab.c:26
int db_d_drop_table(void)
Drop table.
Definition: d_drop_tab.c:26
int db_d_describe_table(void)
Describe table.
Definition: d_desc_table.c:26
int db_d_open_database(void)
Open database connection.
Definition: d_opendb.c:26
int db_d_open_update_cursor(void)
Open update cursor.
Definition: d_openupdate.c:26
int db_d_grant_on_table(void)
Grant privileges on table.
Definition: d_priv.c:26
int db_d_create_database(void)
Create database.
Definition: d_createdb.c:26
int db_d_fetch(void)
Fetch data.
Definition: d_fetch.c:27
int(* routine)(void)
Definition: procs.h:34
int db_d_open_select_cursor(void)
Open select cursor.
Definition: d_openselect.c:26
int db_d_close_database(void)
Close database connection.
Definition: d_closedb.c:25
int db_d_drop_index(void)
Drop index.
Definition: d_drop_index.c:26
int db_d_delete(void)
Delete record (?)
Definition: d_delete.c:25
int db_d_execute_immediate(void)
Execute SQL statements.
Definition: d_execute.c:26
int db_d_open_insert_cursor(void)
Open insert cursor.
Definition: d_openinsert.c:25
int db_d_commit_transaction(void)
Commit transaction.
Definition: d_execute.c:80
int db_d_close_cursor(void)
Close cursor.
Definition: d_close_cur.c:26
int db_d_get_num_rows(void)
Get number of selected rows.
Definition: d_rows.c:25
int db_d_insert(void)
Insert new record into table.
Definition: d_insert.c:25