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