~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_parse.h

  • Committer: Jay Pipes
  • Date: 2009-11-16 22:00:02 UTC
  • mto: (1234.1.1 push) (1237.2.10 push)
  • mto: This revision was merged to the branch mainline in revision 1229.
  • Revision ID: jpipes@serialcoder-20091116220002-rdsha64utt41i8w8
Adds INFORMATION_SCHEMA views for the transaction log:

TRANSACTION_LOG
TRANSACTION_LOG_ENTRIES
TRANSACTION_LOG_TRANSACTIONS

Adds a new user-defined function:

PRINT_TRANSACTION_MESSAGE(filename, offset)

Adds tests for all of the above

Implementation notes:

An indexer now runs when transaction messages are applied
to the transaction log.  It creates a simple index of the
transaction log entries.  This index is used when the
information schema views' fillTable() method is called.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include "drizzled/common.h"
25
25
#include "drizzled/lex_string.h"
26
26
#include "drizzled/comp_creator.h"
27
 
#include "drizzled/identifier.h"
28
27
 
29
 
namespace drizzled
30
 
{
 
28
#include "mystrings/m_ctype.h"
31
29
 
32
30
class Session;
33
31
class TableList;
37
35
class Table_ident;
38
36
class Select_Lex;
39
37
 
40
 
typedef struct charset_info_st CHARSET_INFO;
41
 
 
42
 
extern const LEX_STRING command_name[];
43
 
 
44
38
bool execute_sqlcom_select(Session *session, TableList *all_tables);
45
39
bool mysql_insert_select_prepare(Session *session);
46
40
bool update_precheck(Session *session, TableList *tables);
47
41
bool delete_precheck(Session *session, TableList *tables);
48
42
bool insert_precheck(Session *session, TableList *tables);
 
43
bool create_table_precheck(Session *session, TableList *tables,
 
44
                           TableList *create_table);
49
45
 
50
46
Item *negate_expression(Session *session, Item *expr);
51
47
 
77
73
void mysql_init_select(LEX *lex);
78
74
bool mysql_new_select(LEX *lex, bool move_down);
79
75
 
80
 
int prepare_new_schema_table(Session *session, LEX *lex,
81
 
                             const std::string& schema_table_name);
 
76
int prepare_schema_table(Session *session, LEX *lex, Table_ident *table_ident,
 
77
                         const std::string& schema_table_name);
82
78
 
83
79
Item * all_any_subquery_creator(Item *left_expr,
84
80
                                chooser_compare_func_creator cmp,
85
81
                                bool all,
86
82
                                Select_Lex *select_lex);
87
83
 
88
 
char* query_table_status(Session *session,const char *db,const char *table_name);
89
 
 
90
 
} /* namespace drizzled */
91
 
 
92
84
#endif /* DRIZZLED_SQL_PARSE_H */