File modules/qi/query_instructions.h

  $Revision: 1.26 $

Query instruction module (qi) config module.
Status: NOT REVUED, NOT TESTED
Included in: modules/qi/query_instructions.c

Included Files


Preprocessor definitions

#define READ_QUERY_INSTRUCTIONS

#define Q_OBJECTS "SELECT last.object_id, last.sequence_id, last.object ,last.object_type FROM %s IDS STRAIGHT_JOIN last,object_order WHERE last.object_id=IDS.id AND last.object_type != 100 AND last.object_type = object_order.object_type ORDER BY order_code"

#define Q_REC "INSERT INTO %s SELECT pe_ro_id FROM %s IDS STRAIGHT_JOIN %s WHERE object_id = IDS.id"

#define Q_NO_OBJECTS "SELECT object_id, sequence_id, object FROM last WHERE object_id = 0"

#define MAX_INSTRUCTIONS 100


Typedef Query_instruction

typedef struct Query_instruction_t Query_instruction
struct Query_instruction_t 
   { 
     R_Type_t search_type; 
     int queryindex; 
     char* query_str; 
     char* rx_keys; 
     unsigned int rx_srch_mode; 
     unsigned int rx_par_a; 
     ip_space_t space; 
     rx_fam_t family; 
   } 

Typedef Query_instructions

typedef struct Query_instructions_t Query_instructions
struct Query_instructions_t 
   { 
     Query_instruction* instruction[100]; 
     unsigned int filtered; 
     unsigned int fast; 
     unsigned int recursive; 
     const Query_command* qc; 
   }