dm_db_select_tables Function

public function dm_db_select_tables(db, tables) result(rc)

Returns an array containing the names of all tables in the given database.

The function returns the following error codes:

  • E_ALLOC if memory allocation failed.
  • E_BOUNDS if more tables are returned than expected.
  • E_DB_NO_ROWS if no rows are returned.
  • E_DB_PREPARE if statement preparation failed.
  • E_DB_TYPE if returned columns are unexpected.

Arguments

Type IntentOptional Attributes Name
type(db_type), intent(inout) :: db

Database type.

character(len=SQL_TABLE_NAME_LEN), intent(out), allocatable :: tables(:)

Array of tables.

Return Value integer


Calls

proc~~dm_db_select_tables~~CallsGraph proc~dm_db_select_tables dm_db_select_tables sqlite3_column_int sqlite3_column_int proc~dm_db_select_tables->sqlite3_column_int sqlite3_column_text sqlite3_column_text proc~dm_db_select_tables->sqlite3_column_text sqlite3_column_type sqlite3_column_type proc~dm_db_select_tables->sqlite3_column_type sqlite3_finalize sqlite3_finalize proc~dm_db_select_tables->sqlite3_finalize sqlite3_prepare_v2 sqlite3_prepare_v2 proc~dm_db_select_tables->sqlite3_prepare_v2 sqlite3_step sqlite3_step proc~dm_db_select_tables->sqlite3_step