~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/schema.h

  • Committer: Stewart Smith
  • Date: 2011-03-29 01:30:47 UTC
  • mto: (2257.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: stewart@flamingspork.com-20110329013047-5ujzfx6pahmwuko2
have CachedDirectory print out a warning if we can't stat() something in a directory. We should always have access to at least stat() things in directories Drizzle is running in (otherwise there is likely a problem)

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
 
21
 
#ifndef DRIZZLED_DB_H
22
 
#define DRIZZLED_DB_H
 
21
#pragma once
 
22
 
 
23
// #include <drizzled/message/schema.h>
23
24
 
24
25
namespace drizzled {
25
26
 
 
27
class Session;
26
28
namespace message { class Schema; }
27
 
 
28
 
bool mysql_create_db(Session *session, const message::Schema &schema_message, const bool is_if_not_exists);
29
 
bool mysql_alter_db(Session *session, const message::Schema &schema_message);
30
 
bool mysql_rm_db(Session *session, SchemaIdentifier &identifier, const bool if_exists);
31
 
bool mysql_change_db(Session *session, SchemaIdentifier &identifier);
 
29
namespace identifier { class Schema; }
 
30
 
 
31
namespace schema {
 
32
 
 
33
bool create(Session&, const message::Schema&, bool is_if_not_exists);
 
34
bool alter(Session&, const message::Schema&, const message::Schema &original_schema);
 
35
bool drop(Session&, const identifier::Schema&, bool if_exists);
 
36
bool change(Session&, const identifier::Schema&);
 
37
bool check(Session&, const identifier::Schema&);
 
38
 
 
39
}
32
40
 
33
41
} /* namespace drizzled */
34
42
 
35
 
#endif /* DRIZZLED_DB_H */