/* * PROGRAM: Database analysis tool * MODULE: dbaswi.h * DESCRIPTION: dba switches * * The contents of this file are subject to the Interbase Public * License Version 1.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy * of the License at http://www.Inprise.com/IPL.html * * Software distributed under the License is distributed on an * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express * or implied. See the License for the specific language governing * rights and limitations under the License. * * The Original Code was created by Inprise Corporation * and its predecessors. Portions created by Inprise Corporation are * Copyright (C) Inprise Corporation. * * All Rights Reserved. * Contributor(s): ______________________________________. */ #ifndef _DBA_DBASWI_H_ #define _DBA_DBASWI_H_ #include "../jrd/common.h" /* Switch handling constants. Note that the first IN_SW_DATA_ITEMS switch constants refer to data items. The remaining switch constants refer to actual switches. */ #define IN_SW_DBA_0 0 /* not a known switch */ #define IN_SW_DBA_SYSTEM 1 /* analyze system relations */ #define IN_SW_DBA_DATA 2 /* analyze data pages */ #define IN_SW_DBA_INDEX 3 /* analyze index leaf pages */ #define IN_SW_DBA_VERSION 4 /* display version number */ #define IN_SW_DBA_HEADER 5 /* analyze header page */ #define IN_SW_DBA_LOG 6 /* analze log pages */ #define IN_SW_DBA_DATAIDX 7 /* analyze data and index pages */ #define IN_SW_DBA_USERNAME 8 /* username */ #define IN_SW_DBA_PASSWORD 9 /* password */ #define IN_SW_DBA_RECORD 10 /* analyze record versions */ #define IN_SW_DBA_RELATION 11 /* analyze specific relations */ static struct in_sw_tab_t dba_in_sw_table [] = { {IN_SW_DBA_DATAIDX, 0, "ALL", 0,0,0, FALSE, 22, 0, NULL}, /* msg 22: -a analyze data and index pages */ {IN_SW_DBA_DATA, isc_spb_sts_data_pages, "DATA", 0,0,0, FALSE, 23, 0, NULL}, /* msg 23: -d analyze data pages*/ {IN_SW_DBA_HEADER, isc_spb_sts_hdr_pages, "HEADER", 0,0,0, FALSE, 24, 0, NULL}, /* msg 24: -h analyze header page */ {IN_SW_DBA_INDEX, isc_spb_sts_idx_pages, "INDEX", 0,0,0, FALSE, 25, 0, NULL}, /* msg 25: -i analyze index leaf pages */ {IN_SW_DBA_LOG, isc_spb_sts_db_log, "LOG", 0,0,0, FALSE, 26, 0, NULL}, /* msg 26: -l analyze log page */ {IN_SW_DBA_SYSTEM, isc_spb_sts_sys_relations, "SYSTEM", 0,0,0, FALSE, 27, 0, NULL}, /* msg 27: -s analyze system relations */ {IN_SW_DBA_USERNAME, 0, "USERNAME", 0,0,0, FALSE, 32, 0, NULL}, /* msg 32: -u username */ {IN_SW_DBA_PASSWORD, 0, "PASSWORD", 0,0,0, FALSE, 33, 0, NULL}, /* msg 33: -p password */ {IN_SW_DBA_RECORD, 0, "RECORD", 0,0,0, FALSE, 34, 0, NULL}, /* msg 34: -r analyze average record and version length */ {IN_SW_DBA_RELATION, 0, "TABLE", 0,0,0, FALSE, 35, 0, NULL}, /* msg 35: -t tablename */ {IN_SW_DBA_VERSION, 0, "Z", 0,0,0, FALSE, 28, 0, NULL}, /* msg 28: -z display version number */ {IN_SW_DBA_0, 0, NULL, 0,0,0, FALSE, 0, 0, NULL} /* End of List */ }; #endif /* _DBA_DBASWI_H_ */