~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/function_engine/function.h

  • Committer: Zimin
  • Date: 2010-06-30 06:36:56 UTC
  • mto: (1643.1.5 build)
  • mto: This revision was merged to the branch mainline in revision 1644.
  • Revision ID: ziminq@gmail.com-20100630063656-5oa531u1mfyn6ybl
move the comment of 'create' in TableList as well

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <drizzled/session.h>
26
26
#include <drizzled/plugin/storage_engine.h>
27
27
#include <drizzled/plugin/table_function.h>
28
 
#include <drizzled/identifier/schema.h>
29
28
 
30
29
extern const drizzled::CHARSET_INFO *default_charset_info;
31
30
 
35
34
 
36
35
class Function : public drizzled::plugin::StorageEngine
37
36
{
38
 
  drizzled::message::schema::shared_ptr information_message;
39
 
  drizzled::message::schema::shared_ptr data_dictionary_message;
40
37
 
41
38
public:
42
39
  Function(const std::string &name_arg);
59
56
    return EPERM; 
60
57
  }
61
58
 
62
 
  virtual drizzled::Cursor *create(drizzled::Table &table);
 
59
  virtual drizzled::Cursor *create(drizzled::TableShare &table,
 
60
                                   drizzled::memory::Root *mem_root);
63
61
 
64
62
  const char **bas_ext() const 
65
63
  {
74
72
  bool doCanCreateTable(const drizzled::TableIdentifier &identifier);
75
73
 
76
74
 
 
75
  void doGetTableNames(drizzled::CachedDirectory&, 
 
76
                       drizzled::SchemaIdentifier &schema_identifier,
 
77
                       std::set<std::string> &set_of_names);
 
78
 
77
79
  int doGetTableDefinition(drizzled::Session &session,
78
80
                           const drizzled::TableIdentifier &identifier,
79
81
                           drizzled::message::Table &table_message);
80
82
 
81
 
  void doGetSchemaIdentifiers(drizzled::SchemaIdentifier::vector&);
 
83
  void doGetSchemaIdentifiers(drizzled::SchemaIdentifierList&);
82
84
 
83
85
  bool doDoesTableExist(drizzled::Session& session, const drizzled::TableIdentifier &identifier);
84
86
 
85
 
  bool doGetSchemaDefinition(const drizzled::SchemaIdentifier &schema, drizzled::message::schema::shared_ptr &schema_message);
 
87
  bool doGetSchemaDefinition(drizzled::SchemaIdentifier &schema, drizzled::message::Schema &schema_message);
86
88
 
87
89
  int doRenameTable(drizzled::Session&, const drizzled::TableIdentifier &, const drizzled::TableIdentifier &)
88
90
  {
90
92
  }
91
93
 
92
94
  void doGetTableIdentifiers(drizzled::CachedDirectory &directory,
93
 
                             const drizzled::SchemaIdentifier &schema_identifier,
94
 
                             drizzled::TableIdentifier::vector &set_of_identifiers);
 
95
                             drizzled::SchemaIdentifier &schema_identifier,
 
96
                             drizzled::TableIdentifiers &set_of_identifiers);
95
97
};
96
98
 
97
99
#endif /* PLUGIN_FUNCTION_ENGINE_FUNCTION_H */