ASA Programming Guide
The Database Tools Interface
DBTools structures
Holds information needed for database validation using the DBTools library.
typedef struct a_validate_db {
unsigned short version;
const char * connectparms;
const char * startline;
p_name tables;
MSG_CALLBACK errorrtn;
MSG_CALLBACK msgrtn;
MSG_CALLBACK statusrtn;
a_bit_field quiet : 1;
a_bit_field index : 1;
a_validate_type type;
} a_validate_db;
| Member | Description |
|---|---|
| version | DBTools version number. |
| connectparms |
The parameters needed to connect to the database. They take the form of connection strings, such as the following:
"UID=DBA;PWD=SQL;DBF=c:\asa\asademo.db"For the full range of connection string options, see Connection parameters |
| startline |
The command-line used to start the database engine. The following is an example start line:
"c:\Program Files\Sybase\SA\win32\dbeng9.exe"The default start line is used if this member is NULL |
| tables | Pointer to a linked list of table names |
| errorrtn | Callback routine for handling an error message |
| msgrtn | Callback routine for handling an information message |
| statusrtn | Callback routine for handling a status message |
| quiet | Operate without printing messages (1), or print messages (0) |
| index | Validate indexes |
| type | See a_validate_type enumeration |
For more information on callback functions, see Using callback functions.