GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71915
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
procs.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int db_d_add_column ()
 Add column to table. More...
 
int db_d_bind_update ()
 ADD. More...
 
int db_d_close_cursor ()
 Close cursor. More...
 
int db_d_close_database ()
 Close database connection. More...
 
int db_d_create_database ()
 Create database. More...
 
int db_d_create_index ()
 Create index. More...
 
int db_d_create_table ()
 Create table. More...
 
int db_d_delete_database ()
 Delete database. More...
 
int db_d_describe_table ()
 Describe table. More...
 
int db_d_drop_column ()
 Drop column. More...
 
int db_d_drop_index ()
 Drop index. More...
 
int db_d_drop_table ()
 Drop table. More...
 
int db_d_execute_immediate ()
 Execute SQL statements. More...
 
int db_d_begin_transaction ()
 Begin transaction. More...
 
int db_d_commit_transaction ()
 Commit transaction. More...
 
int db_d_fetch ()
 Fetch data. More...
 
int db_d_get_num_rows ()
 Get number of selected rows. More...
 
int db_d_find_database ()
 Find database. More...
 
int db_d_grant_on_table ()
 Grant privileges on table. More...
 
int db_d_insert ()
 Insert new record into table. More...
 
int db_d_delete ()
 Delete record (?) More...
 
int db_d_list_databases ()
 List databases. More...
 
int db_d_list_indexes ()
 List indexes. More...
 
int db_d_list_tables ()
 List available tables for given connection. More...
 
int db_d_open_database ()
 Open database connection. More...
 
int db_d_open_insert_cursor ()
 Open insert cursor. More...
 
int db_d_open_select_cursor ()
 Open select cursor. More...
 
int db_d_open_update_cursor ()
 Open update cursor. More...
 
int db_d_update ()
 ? More...
 
int db_d_version ()
 Get version info. More...
 

Function Documentation

int db_d_add_column ( void  )

Add column to table.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 26 of file d_add_col.c.

References db_driver_add_column, db_free_column(), db_free_string(), db_init_column(), db_init_string(), DB_OK, DB_RECV_COLUMN_DEFINITION, DB_RECV_STRING, DB_SEND_FAILURE, DB_SEND_SUCCESS, and name.

int db_d_begin_transaction ( void  )

Begin transaction.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 56 of file d_execute.c.

References db_driver_begin_transaction, DB_OK, DB_SEND_FAILURE, and DB_SEND_SUCCESS.

int db_d_close_cursor ( void  )
int db_d_close_database ( void  )

Close database connection.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 25 of file d_closedb.c.

References db__close_all_cursors(), db__init_driver_state(), db__mark_database_closed(), db__test_database_open(), db_driver_close_database, db_error(), DB_OK, DB_SEND_FAILURE, and DB_SEND_SUCCESS.

int db_d_commit_transaction ( )

Commit transaction.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 80 of file d_execute.c.

References db_driver_commit_transaction, DB_OK, DB_SEND_FAILURE, and DB_SEND_SUCCESS.

int db_d_create_database ( void  )

Create database.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 26 of file d_createdb.c.

References db_driver_create_database, db_free_handle(), db_init_handle(), DB_OK, DB_RECV_HANDLE, DB_SEND_FAILURE, and DB_SEND_SUCCESS.

int db_d_create_index ( void  )

Create index.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 26 of file d_create_idx.c.

References db_driver_create_index, db_free_index(), db_init_index(), DB_OK, DB_RECV_INDEX, DB_SEND_FAILURE, DB_SEND_STRING, DB_SEND_SUCCESS, and _db_index::indexName.

int db_d_create_table ( void  )

Create table.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 26 of file d_create_tab.c.

References db_driver_create_table, db_free_table(), DB_OK, DB_RECV_TABLE_DEFINITION, DB_SEND_FAILURE, and DB_SEND_SUCCESS.

int db_d_delete ( void  )

Delete record (?)

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 25 of file d_delete.c.

References db_driver_delete, db_error(), DB_FAILED, db_find_token(), DB_OK, DB_RECV_TOKEN, DB_SEND_FAILURE, DB_SEND_SUCCESS, db_test_cursor_type_update(), and NULL.

int db_d_delete_database ( void  )

Delete database.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 26 of file d_deletedb.c.

References db_driver_delete_database, db_free_handle(), db_init_handle(), DB_OK, DB_RECV_HANDLE, DB_SEND_FAILURE, and DB_SEND_SUCCESS.

int db_d_describe_table ( void  )
int db_d_drop_column ( void  )

Drop column.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 26 of file d_drop_col.c.

References db_driver_drop_column, db_free_string(), db_init_string(), DB_OK, DB_RECV_STRING, DB_SEND_FAILURE, and DB_SEND_SUCCESS.

int db_d_drop_index ( void  )

Drop index.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 26 of file d_drop_index.c.

References db_driver_drop_index, db_free_string(), db_init_string(), DB_OK, DB_RECV_STRING, DB_SEND_FAILURE, DB_SEND_SUCCESS, and name.

int db_d_drop_table ( void  )

Drop table.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 26 of file d_drop_tab.c.

References db_driver_drop_table, db_free_string(), db_init_string(), DB_OK, DB_RECV_STRING, DB_SEND_FAILURE, DB_SEND_SUCCESS, and name.

int db_d_execute_immediate ( void  )

Execute SQL statements.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 26 of file d_execute.c.

References db_driver_execute_immediate, db_free_string(), db_init_string(), DB_OK, DB_RECV_STRING, DB_SEND_FAILURE, and DB_SEND_SUCCESS.

int db_d_fetch ( void  )

Fetch data.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 28 of file d_fetch.c.

References db_driver_fetch, DB_FAILED, db_find_token(), DB_OK, DB_RECV_INT, DB_RECV_TOKEN, DB_SEND_FAILURE, DB_SEND_INT, DB_SEND_SUCCESS, DB_SEND_TABLE_DATA, and _db_cursor::table.

int db_d_find_database ( void  )

Find database.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 26 of file d_finddb.c.

References db_driver_find_database, db_free_handle(), db_init_handle(), DB_OK, DB_RECV_HANDLE, DB_SEND_FAILURE, DB_SEND_HANDLE, DB_SEND_INT, and DB_SEND_SUCCESS.

int db_d_get_num_rows ( void  )

Get number of selected rows.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 25 of file d_rows.c.

References db_driver_get_num_rows, db_find_token(), DB_OK, DB_RECV_TOKEN, DB_SEND_FAILURE, DB_SEND_INT, and DB_SEND_SUCCESS.

int db_d_grant_on_table ( void  )

Grant privileges on table.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 26 of file d_priv.c.

References db_driver_grant_on_table, db_free_string(), db_init_string(), DB_OK, DB_RECV_INT, DB_RECV_STRING, DB_SEND_FAILURE, and DB_SEND_SUCCESS.

int db_d_insert ( void  )

Insert new record into table.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 25 of file d_insert.c.

References db_driver_insert, db_error(), DB_FAILED, db_find_token(), DB_OK, DB_RECV_TABLE_DATA, DB_RECV_TOKEN, DB_SEND_FAILURE, DB_SEND_SUCCESS, db_test_cursor_type_insert(), NULL, and _db_cursor::table.

int db_d_list_databases ( void  )

List databases.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 26 of file d_listdb.c.

References count, db_driver_list_databases, db_free_handle_array(), db_free_string_array(), DB_OK, DB_RECV_STRING_ARRAY, DB_SEND_FAILURE, DB_SEND_HANDLE, DB_SEND_INT, and DB_SEND_SUCCESS.

int db_d_list_indexes ( void  )

List indexes.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 26 of file d_list_idx.c.

References count, db_driver_list_indexes, db_free_index_array(), db_free_string(), db_init_string(), DB_OK, DB_RECV_STRING, DB_SEND_FAILURE, DB_SEND_INDEX_ARRAY, DB_SEND_SUCCESS, and list.

int db_d_list_tables ( void  )

List available tables for given connection.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 25 of file d_list_tabs.c.

References count, db_driver_list_tables, DB_OK, DB_RECV_INT, DB_SEND_FAILURE, DB_SEND_STRING_ARRAY, and DB_SEND_SUCCESS.

int db_d_open_database ( void  )
int db_d_update ( void  )
int db_d_version ( void  )

Get version info.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 24 of file d_version.c.

References DB_OK, DB_SEND_C_STRING, DB_SEND_SUCCESS, and DB_VERSION.

Variable Documentation

int procnum

Definition at line 34 of file procs.h.

Referenced by db_driver().

int(* routine)()

Definition at line 35 of file procs.h.

Referenced by db_driver().