|
drizzle
C++ MySQL-protocol-compatible database server
|
#include <schema.h>
Public Member Functions | |
| Schema (Session *in_session, string db_name) | |
| bool | createSchema () |
| bool | dropSchema () |
| Session & | session () const |
Public Attributes | |
| bool | is_if_not_exists |
| message::Schema | schema_message |
Private Member Functions | |
| bool | validateSchemaOptions () |
| bool | check (const identifier::Schema &identifier) |
Private Attributes | |
| Session & | _session |
| string | _db_name |
a class.
To perform various operations related to schema.
Definition at line 41 of file plugin/json_server/ddl/schema.h.
Constructor.
| in_session | a session object. |
| db_name | a schema name string. |
Definition at line 50 of file plugin/json_server/ddl/schema.h.
|
private |
Checks whether schema exists or not already.
Definition at line 140 of file plugin/json_server/ddl/schema.cc.
| bool Schema::createSchema | ( | ) |
create a new schema if it not exists.
Definition at line 46 of file plugin/json_server/ddl/schema.cc.
| bool Schema::dropSchema | ( | ) |
drop a schema if it exists.
Definition at line 84 of file plugin/json_server/ddl/schema.cc.
|
inline |
Get a session object.
Definition at line 80 of file plugin/json_server/ddl/schema.h.
|
private |
Validates various schema options.
Definition at line 126 of file plugin/json_server/ddl/schema.cc.
|
private |
Stores a schema name.
Definition at line 106 of file plugin/json_server/ddl/schema.h.
|
private |
Stores a session object.
Definition at line 102 of file plugin/json_server/ddl/schema.h.
| bool drizzle_plugin::json_server::Schema::is_if_not_exists |
Stores whether schema exist or not.
Definition at line 56 of file plugin/json_server/ddl/schema.h.
| message::Schema drizzle_plugin::json_server::Schema::schema_message |
Stores schema message.
Definition at line 60 of file plugin/json_server/ddl/schema.h.