GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
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

◆ db_d_add_column()

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.

◆ db_d_begin_transaction()

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.

◆ db_d_bind_update()

int db_d_bind_update ( void  )

ADD.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 25 of file d_bindupdate.c.

◆ db_d_close_cursor()

int db_d_close_cursor ( void  )

◆ db_d_close_database()

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.

◆ db_d_commit_transaction()

int db_d_commit_transaction ( void  )

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.

◆ db_d_create_database()

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.

◆ db_d_create_index()

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.

◆ db_d_create_table()

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.

◆ db_d_delete()

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.

◆ db_d_delete_database()

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.

◆ db_d_describe_table()

int db_d_describe_table ( void  )

Describe table.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 26 of file d_desc_table.c.

◆ db_d_drop_column()

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.

◆ db_d_drop_index()

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.

◆ db_d_drop_table()

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.

◆ db_d_execute_immediate()

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.

◆ db_d_fetch()

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.

◆ db_d_find_database()

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.

◆ db_d_get_num_rows()

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.

◆ db_d_grant_on_table()

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.

◆ db_d_insert()

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.

◆ db_d_list_databases()

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.

◆ db_d_list_indexes()

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.

◆ db_d_list_tables()

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.

◆ db_d_open_database()

int db_d_open_database ( void  )

◆ db_d_open_insert_cursor()

int db_d_open_insert_cursor ( void  )

Open insert cursor.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 25 of file d_openinsert.c.

◆ db_d_open_select_cursor()

int db_d_open_select_cursor ( void  )

Open select cursor.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 26 of file d_openselect.c.

◆ db_d_open_update_cursor()

int db_d_open_update_cursor ( void  )

Open update cursor.

Returns
DB_OK on success
DB_FAILED on failure

Definition at line 26 of file d_openupdate.c.

◆ db_d_update()

int db_d_update ( void  )

◆ db_d_version()

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

◆ procnum

int procnum

Definition at line 34 of file procs.h.

Referenced by db_driver().

◆ routine

int(* routine) ()

Definition at line 35 of file procs.h.