OSDN Git Service

db/base.hpp: CREATE TABLEのオプション、一通り網羅出来た・・・かな・・・?
authorMyun2 <myun2@nwhite.info>
Tue, 1 Jun 2010 15:07:27 +0000 (00:07 +0900)
committerMyun2 <myun2@nwhite.info>
Tue, 1 Jun 2010 15:07:27 +0000 (00:07 +0900)
include/roast/db/base.hpp

index 01b0bf3..08f932f 100644 (file)
@@ -37,7 +37,29 @@ namespace roast
                
                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);
                };
                
                /////////////////////////////////////////