1 #ifndef cetlib_sqlite_create_table_h 2 #define cetlib_sqlite_create_table_h 53 #include <type_traits> 58 template <
typename... Cols>
72 template <
typename T,
typename... Constraints>
77 info += (Constraints::snippet() + ... +
""s);
81 template <
typename H,
typename...
T>
91 return "CREATE TABLE "s + tablename;
94 template <
typename... Cols>
116 template <
typename... Cols>
std::string column_info(column< T, Constraints... > const &col)
std::string create_table(std::string const &tablename)
void create_table_as(std::string const &tablename, SelectStmt const &stmt)
std::string columns(H const &h, T const &...t)
std::string create_table_ddl(std::string const &tablename, Cols const &...cols)
void exec(sqlite3 *db, std::string const &ddl)
std::string create_table_as_ddl(std::string const &tablename, SelectStmt const &stmt)