home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: Product
/
Product.zip
/
DBDEMO.ZIP
/
DEMOFLS.ZIP
/
DBCOMM.H
< prev
next >
Wrap
Text File
|
1991-07-03
|
2KB
|
47 lines
/************************************************************************/
/* DATABASE PERFORMANCE CONCEPTS AND TECHNIQUE DEMONSTRATION PROGRAM */
/* HEADER FILE */
/* SOURCE - DBCOMM.C */
/* This file contains variable and function declarations used both by */
/* the PM driver program and the imbedded SQL modules */
/************************************************************************/
#define TIMEFIELDS_LENGTH 200 // field length in dialog box
#define TABLENAME_LENGTH 32 // max table name length
#define DEMO_RBLOCK 1 /* demo_num - Record Blocking */
#define DEMO_STATDYN 2
#define DEMO_ARI 3
#define DEMO_INDICES 4
#define DB_OK_RETURN 0 /* return from demo functions */
#define DB_BAD_RETURN 2
#define DB_NOT_AVAIL 4
/************************************************************************/
// Structure for data supplied by SQC programs.
// the database modules fill this structure after running
// test modules and the PM program displays them in the dialog
// box
/************************************************************************/
typedef struct
{
short test_num; //number of separate tests(modules)
unsigned char demoname[TIMEFIELDS_LENGTH]; // demo name
double demotime; // time taken to run the test
long rows; // number of rows retreived, not used
unsigned char tablename[TABLENAME_LENGTH]; // not used
long tablesize; // not used
} TIMETEXTStruct;
// There are a maimum of two test comparisons
// This could be changed in the future for accomodating more tests
extern TIMETEXTStruct Timetext[2];
extern long far GetTableSize(unsigned char *);
extern double qtime;
extern int num_runs; // number of iterations (user entered, default-1)
extern double q1avg; // Average time for running num_runs
extern double q2avg; // iterations of each tests
extern long error_sql; // sql error code returned from the function