rpm  5.4.15
poptDB.c
Go to the documentation of this file.
1 
6 #include "system.h"
7 
8 #include <rpmiotypes.h>
9 
10 #include <rpmtypes.h>
11 #include <rpmtag.h>
12 #include <rpmdb.h>
13 #include <rpmlio.h>
14 #include <rpmmdb.h>
15 #include <rpmrepo.h>
16 #include <rpmtxn.h>
17 
18 #include <rpmcli.h> /* XXX rpmQVKArguments_s, <popt.h> */
19 
20 #include "debug.h"
21 
22 /*@-redecl@*/
23 /*@unchecked@*/
24 extern int _dbi_debug;
25 /*@unchecked@*/
26 extern int _scp_debug;
27 /*@unchecked@*/
28 extern int _sqldb_debug;
29 /*@=redecl@*/
30 
31 /*@unchecked@*/
33 
36 struct poptOption rpmDatabasePoptTable[] = {
37 
38  { "rebuilddb", '\0', POPT_ARG_VAL, &rpmDBArgs.rebuild, 1,
39  N_("rebuild database inverted lists from installed package headers"),
40  NULL},
41 
42  { "rpmdbdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmdb_debug, -1,
43  N_("Debug rpmdb DataBase"), NULL},
44  { "rpmdbidebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_dbi_debug, -1,
45  N_("Debug dbiIndex DataBase Index"), NULL},
46  { "rpmliodebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmlio_debug, -1,
47  N_("Debug rpmlio database Log I/O"), NULL},
48  { "rpmmdbdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmmdb_debug, -1,
49  N_("Debug rpmmdb Mongo DB"), NULL},
50  { "rpmrepodebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmrepo_debug, -1,
51  N_("Debug rpmrepo repository wrappers "), NULL},
52  { "rpmtxndebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_rpmtxn_debug, -1,
53  N_("Debug rpmtxn database Transaction"), NULL},
54 #if defined(HAVE_SQLITE3_H) /* XXX test --with-sqlite=external */
55  { "scpdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_scp_debug, -1,
56  N_("Debug SQLDB cursors"), NULL},
57  { "sqldbdebug", '\0', POPT_ARG_VAL|POPT_ARGFLAG_DOC_HIDDEN, &_sqldb_debug, -1,
58  N_("Debug SQLDB"), NULL},
59 #endif
60 
61  POPT_TABLEEND
62 };
int _rpmmdb_debug
Definition: rpmmdb.c:18
struct poptOption rpmDatabasePoptTable[]
Definition: poptDB.c:36
int _scp_debug
Definition: sqlite.c:293
int _sqldb_debug
Definition: sqlite.c:68
Command line option information.
Definition: rpmcli.h:630
#define N_(Text)
Definition: system.h:531
struct rpmQVKArguments_s rpmDBArgs
Definition: poptDB.c:32
int _rpmrepo_debug
Definition: rpmrepo.c:66
int _rpmtxn_debug
Definition: rpmtxn.c:20
int _dbi_debug
Definition: dbconfig.c:22
int _rpmlio_debug
Definition: rpmlio.c:19
int _rpmdb_debug
Definition: rpmdb.c:61
Database transaction wrappers.
Access RPM indices using Berkeley DB interface(s).