ASA Programming Guide
The Database Tools Interface
DBTools structures
Holds information about a table needed as part of the a_db_info structure.
typedef struct a_table_info {
struct a_table_info * next;
unsigned short table_id;
unsigned long table_pages;
unsigned long index_pages;
unsigned long table_used;
unsigned long index_used;
char * table_name;
a_sql_uint32 table_used_pct;
a_sql_uint32 index_used_pct;
} a_table_info;
| Member | Description |
|---|---|
| next | Next table in the list |
| table_id | ID number for this table |
| table_pages | Number of table pages |
| index_pages | Number of index pages |
| table_used | Number of bytes used in table pages |
| index_used | Number of bytes used in index pages |
| table_name | Name of the table |
| table_used_pct | Table space utilization as a percentage |
| index_used_pct | Index space utilization as a percentage |