class table
{
-
+ public:
+ typedef struct
+ {
+ ::std::string name;
+ ::std::string data_type;
+ int length;
+ bool is_unsigned;
+ bool is_zerofill;
+ bool is_null_permit;
+ bool is_primary;
+ bool is_unique;
+ ::std::string default;
+ ::std::string mix;
+ ::std::string max;
+ ::std::string foreign_table;
+ ::std::string foreign_column;
+ bool auto_increment;
+ ::std::string comment;
+ ::std::string extensions;
+ }
+ create_column;
+ public:
+ void create(const char* name, const ::std::vector<create_column>& columns);
};
/////////////////////////////////////////