~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cursor.h

  • Committer: Monty Taylor
  • Date: 2010-03-12 17:43:05 UTC
  • mfrom: (1099.4.119 translations)
  • mto: This revision was merged to the branch mainline in revision 1337.
  • Revision ID: mordred@inaugust.com-20100312174305-r5salinwg291396n
Merged latest translations from launchpad.

Show diffs side-by-side

added added

removed removed

Lines of Context:
223
223
    get_auto_increment().
224
224
  */
225
225
  uint64_t next_insert_id;
 
226
  uint64_t getNextInsertId()
 
227
  {
 
228
    return next_insert_id;
 
229
  }
 
230
 
226
231
  /**
227
232
    insert id for the current row (*autogenerated*; if not
228
233
    autogenerated, it's 0).
322
327
    (table_flags() & (HA_HAS_RECORDS | HA_STATS_RECORDS_IS_EXACT)) != 0
323
328
  */
324
329
  virtual ha_rows records();
 
330
  virtual uint64_t tableSize();
 
331
  virtual uint64_t rowSize();
325
332
  /**
326
333
    Return upper bound of current number of records in the table
327
334
    (max. of how many records one will retrieve when doing a full table scan)
443
450
  */
444
451
  virtual void try_semi_consistent_read(bool) {}
445
452
  virtual void unlock_row(void) {}
446
 
  virtual int start_stmt(Session *, thr_lock_type)
447
 
  {return 0;}
448
453
  virtual void get_auto_increment(uint64_t offset, uint64_t increment,
449
454
                                  uint64_t nb_desired_values,
450
455
                                  uint64_t *first_value,
675
680
};
676
681
 
677
682
extern const char *ha_row_type[];
678
 
extern const char *binlog_format_names[];
679
 
extern uint32_t total_ha, total_ha_2pc;
680
683
 
681
684
/* basic stuff */
682
685
int ha_init_errors(void);
683
 
int ha_init(void);
684
686
int ha_end(void);
685
687
 
686
 
uint32_t filename_to_tablename(const char *from, char *to, uint32_t to_length);
687
 
bool tablename_to_filename(const char *from, char *to, size_t to_length);
688
 
 
689
 
 
690
 
/*
691
 
  Storage engine has to assume the transaction will end up with 2pc if
692
 
   - there is more than one 2pc-capable storage engine available
693
 
   - in the current transaction 2pc was not disabled yet
694
 
*/
695
 
#define trans_need_2pc(session, all)                   ((total_ha_2pc > 1) && \
696
 
        !((all ? &session->transaction.all : &session->transaction.stmt)->no_2pc))
697
 
 
698
 
 
699
688
SORT_FIELD * make_unireg_sortorder(order_st *order, uint32_t *length,
700
689
                                   SORT_FIELD *sortorder);
701
690
int setup_order(Session *session, Item **ref_pointer_array, TableList *tables,
722
711
bool mysql_create_table(Session *session,
723
712
                        TableIdentifier &identifier,
724
713
                        HA_CREATE_INFO *create_info,
725
 
                        message::Table *table_proto,
 
714
                        message::Table &table_proto,
726
715
                        AlterInfo *alter_info,
727
716
                        bool tmp_table, uint32_t select_field_count,
728
717
                        bool is_if_not_exists);
730
719
bool mysql_create_table_no_lock(Session *session,
731
720
                                TableIdentifier &identifier,
732
721
                                HA_CREATE_INFO *create_info,
733
 
                                message::Table *table_proto,
 
722
                                message::Table &table_proto,
734
723
                                AlterInfo *alter_info,
735
724
                                bool tmp_table,
736
725
                                uint32_t select_field_count,
737
726
                                bool is_if_not_exists);
738
727
 
739
 
bool mysql_create_like_table(Session* session, TableList* table, TableList* src_table,
740
 
                             message::Table& create_table_proto,
741
 
                             plugin::StorageEngine*,
 
728
bool mysql_create_like_table(Session* session,
 
729
                             TableList* table, TableList* src_table,
 
730
                             message::Table &create_table_proto,
742
731
                             bool is_if_not_exists,
743
732
                             bool is_engine_set);
744
733