1 // Copyright 2009 The Archiveopteryx Developers <info@aox.org>
2 
3 #ifndef DB_H
4 #define DB_H
5 
6 #include "aoxcommand.h"
7 
8 
9 class ShowSchema
10     : public AoxCommand
11 {
12 public:
13     ShowSchema( EStringList * );
14     void execute();
15 
16 private:
17     class Query * q;
18 };
19 
20 
21 class UpgradeSchema
22     : public AoxCommand
23 {
24 public:
25     UpgradeSchema( EStringList * );
26     void execute();
27 
28 private:
29     class Query * q;
30 };
31 
32 
33 class Vacuum
34     : public AoxCommand
35 {
36 public:
37     Vacuum( EStringList * );
38     void execute();
39 
40 private:
41     class Transaction * t;
42     class RetentionSelector * r;
43     class Selector * s;
44 };
45 
46 
47 class GrantPrivileges
48     : public AoxCommand
49 {
50 public:
51     GrantPrivileges( EStringList * );
52     void execute();
53 
54 private:
55     bool commit;
56     class Transaction * t;
57 };
58 
59 
60 class TuneDatabase
61     : public AoxCommand
62 {
63 public:
64     TuneDatabase( EStringList * );
65     void execute();
66 
67 private:
68     class TuneDatabaseData * d;
69 };
70 
71 
72 class CheckDatabase
73     : public AoxCommand
74 {
75 public:
76     CheckDatabase( EStringList * );
77     void execute();
78     void expectEmpty( const char * );
79     void scream( class Query * );
80 
81 private:
82     Transaction * t;
83 };
84 
85 
86 #endif
87