OSDN Git Service

split to create_table_detail.hpp
authormyun2 <myun2@nwhite.info>
Tue, 17 Apr 2012 19:39:45 +0000 (04:39 +0900)
committermyun2 <myun2@nwhite.info>
Tue, 17 Apr 2012 19:39:45 +0000 (04:39 +0900)
roast/include/roast/db/sql/create_table_detail.hpp [new file with mode: 0644]
roast/include/roast/db/sql/table.hpp

diff --git a/roast/include/roast/db/sql/create_table_detail.hpp b/roast/include/roast/db/sql/create_table_detail.hpp
new file mode 100644 (file)
index 0000000..2b8afb5
--- /dev/null
@@ -0,0 +1,37 @@
+//     Roast+ License
+
+/*
+       
+*/
+#ifndef __SFJP_ROAST__db__sql__create_table_detail_HPP__
+#define __SFJP_ROAST__db__sql__create_table_detail_HPP__
+
+#include "roast/db/sql/sql_common.hpp"
+#include <vector>
+
+namespace roast
+{
+       namespace sql
+       {
+               ///////////////////////////////////////////////////////////////////////////////////
+
+               template <typename COLUMN_NAME, typename DATA_TYPE, typename OPTIONS=EmptyType>
+               class create_table_column_ : public seq<
+                       COLUMN_NAME, _char::space,
+                       DATA_TYPE, _char::space,
+                       OPTIONS>
+               {
+               };
+               
+               template <typename COLUMN_NAME, typename DATA_TYPE>
+               class create_table_column_<COLUMN_NAME,DATA_TYPE,EmptyType> : public seq<
+                       COLUMN_NAME, _char::space,
+                       DATA_TYPE>
+               {
+               };
+               
+               ///////////////////////////////////////////////////////////////////////////
+       }
+}
+
+#endif//__SFJP_ROAST__db__sql__create_table_detail_HPP__
index 81b7491..29866ce 100644 (file)
@@ -7,6 +7,7 @@
 #define __SFJP_ROAST__db__sql__table_HPP__
 
 #include "roast/db/sql/sql_common.hpp"
+#include "roast/db/sql/create_table_detail.hpp"
 #include <vector>
 
 namespace roast