~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/log_event.h

  • Committer: Brian Aker
  • Date: 2008-08-16 22:34:15 UTC
  • mto: This revision was merged to the branch mainline in revision 346.
  • Revision ID: brian@tangent.org-20080816223415-n24esdpfcqi4pwpy
Refactor around classes. TABLE_LIST has been factored out of table.h

Show diffs side-by-side

added added

removed removed

Lines of Context:
400
400
/**
401
401
  @def LOG_EVENT_THREAD_SPECIFIC_F
402
402
 
403
 
  If the query depends on the thread (for example: TEMPORARY TABLE).
 
403
  If the query depends on the thread (for example: TEMPORARY Table).
404
404
  Currently this is used by mysqlbinlog to know it must print
405
405
  SET @@PSEUDO_THREAD_ID=xx; before the query (it would not hurt to print it
406
406
  for every query but this would be slow).
1703
1703
   (1)    USE db;
1704
1704
   (2)    LOAD DATA [LOCAL] INFILE 'file_name'
1705
1705
   (3)    [REPLACE | IGNORE]
1706
 
   (4)    INTO TABLE 'table_name'
 
1706
   (4)    INTO Table 'table_name'
1707
1707
   (5)    [FIELDS
1708
1708
   (6)      [TERMINATED BY 'field_term']
1709
1709
   (7)      [[OPTIONALLY] ENCLOSED BY 'enclosed']
3164
3164
  flag_set get_flags(flag_set flag) const { return m_flags & flag; }
3165
3165
 
3166
3166
#ifndef DRIZZLE_CLIENT
3167
 
  Table_map_log_event(THD *thd, TABLE *tbl, ulong tid, 
 
3167
  Table_map_log_event(THD *thd, Table *tbl, ulong tid, 
3168
3168
                      bool is_transactional, uint16_t flags);
3169
3169
#endif
3170
3170
#ifdef HAVE_REPLICATION
3202
3202
#endif
3203
3203
 
3204
3204
#ifndef DRIZZLE_CLIENT
3205
 
  TABLE         *m_table;
 
3205
  Table         *m_table;
3206
3206
#endif
3207
3207
  char const    *m_dbnam;
3208
3208
  size_t         m_dblen;
3344
3344
     this class, not create instances of this class.
3345
3345
  */
3346
3346
#ifndef DRIZZLE_CLIENT
3347
 
  Rows_log_event(THD*, TABLE*, ulong table_id, 
 
3347
  Rows_log_event(THD*, Table*, ulong table_id, 
3348
3348
                 MY_BITMAP const *cols, bool is_transactional);
3349
3349
#endif
3350
3350
  Rows_log_event(const char *row_data, uint event_len, 
3360
3360
#endif
3361
3361
 
3362
3362
#ifndef DRIZZLE_CLIENT
3363
 
  TABLE *m_table;               /* The table the rows belong to */
 
3363
  Table *m_table;               /* The table the rows belong to */
3364
3364
#endif
3365
3365
  ulong       m_table_id;       /* Table ID */
3366
3366
  MY_BITMAP   m_cols;           /* Bitmap denoting columns available */
3492
3492
  };
3493
3493
 
3494
3494
#if !defined(DRIZZLE_CLIENT)
3495
 
  Write_rows_log_event(THD*, TABLE*, ulong table_id, 
 
3495
  Write_rows_log_event(THD*, Table*, ulong table_id, 
3496
3496
                       bool is_transactional);
3497
3497
#endif
3498
3498
#ifdef HAVE_REPLICATION
3500
3500
                       const Format_description_log_event *description_event);
3501
3501
#endif
3502
3502
#if !defined(DRIZZLE_CLIENT) 
3503
 
  static bool binlog_row_logging_function(THD *thd, TABLE *table,
 
3503
  static bool binlog_row_logging_function(THD *thd, Table *table,
3504
3504
                                          bool is_transactional,
3505
3505
                                          const uchar *before_record
3506
3506
                                          __attribute__((unused)),
3547
3547
  };
3548
3548
 
3549
3549
#ifndef DRIZZLE_CLIENT
3550
 
  Update_rows_log_event(THD*, TABLE*, ulong table_id,
 
3550
  Update_rows_log_event(THD*, Table*, ulong table_id,
3551
3551
                        bool is_transactional);
3552
3552
 
3553
3553
  void init(MY_BITMAP const *cols);
3561
3561
#endif
3562
3562
 
3563
3563
#if !defined(DRIZZLE_CLIENT) 
3564
 
  static bool binlog_row_logging_function(THD *thd, TABLE *table,
 
3564
  static bool binlog_row_logging_function(THD *thd, Table *table,
3565
3565
                                          bool is_transactional,
3566
3566
                                          const uchar *before_record,
3567
3567
                                          const uchar *after_record)
3620
3620
  };
3621
3621
 
3622
3622
#ifndef DRIZZLE_CLIENT
3623
 
  Delete_rows_log_event(THD*, TABLE*, ulong, 
 
3623
  Delete_rows_log_event(THD*, Table*, ulong, 
3624
3624
                        bool is_transactional);
3625
3625
#endif
3626
3626
#ifdef HAVE_REPLICATION
3628
3628
                        const Format_description_log_event *description_event);
3629
3629
#endif
3630
3630
#if !defined(DRIZZLE_CLIENT) 
3631
 
  static bool binlog_row_logging_function(THD *thd, TABLE *table,
 
3631
  static bool binlog_row_logging_function(THD *thd, Table *table,
3632
3632
                                          bool is_transactional,
3633
3633
                                          const uchar *before_record,
3634
3634
                                          const uchar *after_record