~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/schema_engine/schema.h

  • Committer: Brian Aker
  • Date: 2010-03-31 05:53:34 UTC
  • Revision ID: brian@gaz-20100331055334-yqqmzlgqb2xq1p5b
Mass overhaul to use schema_identifier.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
class Schema : public drizzled::plugin::StorageEngine
38
38
{
39
 
  bool writeSchemaFile(const char *path, const drizzled::message::Schema &db);
40
 
  bool readSchemaFile(const std::string &path, drizzled::message::Schema &schema);
 
39
  bool writeSchemaFile(drizzled::SchemaIdentifier &schema_identifier, const drizzled::message::Schema &db);
 
40
  bool readSchemaFile(const std::string &schema_file_name, drizzled::message::Schema &schema);
41
41
 
42
42
  void prime();
43
43
 
53
53
  ~Schema();
54
54
 
55
55
 
56
 
  bool doCanCreateTable(const drizzled::TableIdentifier &identifier);
 
56
  bool doCanCreateTable(drizzled::TableIdentifier &identifier);
57
57
 
58
58
  drizzled::Cursor *create(drizzled::TableShare &,
59
59
                           drizzled::memory::Root *)
61
61
    return NULL;
62
62
  }
63
63
 
64
 
  void doGetSchemaNames(std::set<std::string>& set_of_names);
65
 
  bool doGetSchemaDefinition(const std::string &schema_name, drizzled::message::Schema &proto);
 
64
  void doGetSchemaIdentifiers(drizzled::SchemaIdentifierList &set_of_names);
 
65
  bool doGetSchemaDefinition(drizzled::SchemaIdentifier&, drizzled::message::Schema &proto);
66
66
 
67
67
  bool doCreateSchema(const drizzled::message::Schema &schema_message);
68
68
 
69
69
  bool doAlterSchema(const drizzled::message::Schema &schema_message);
70
70
 
71
 
  bool doDropSchema(const std::string &schema_name);
 
71
  bool doDropSchema(drizzled::SchemaIdentifier&);
72
72
 
73
73
  // Below are table methods that we don't implement (and don't need)
74
74
 
81
81
 
82
82
 
83
83
  void doGetTableNames(drizzled::CachedDirectory&,
84
 
                       std::string&,
 
84
                       drizzled::SchemaIdentifier&,
85
85
                       std::set<std::string>&)
86
86
  {
87
87
  }