Namespaces | Functions
create_table.h File Reference
#include "cetlib/sqlite/column.h"
#include "cetlib/sqlite/exec.h"
#include "cetlib/sqlite/select.h"
#include "sqlite3.h"
#include <sstream>
#include <string>
#include <tuple>
#include <type_traits>

Go to the source code of this file.

Namespaces

 cet::sqlite
 
 cet::sqlite::detail
 

Functions

template<typename... Cols>
void cet::sqlite::create_table (sqlite3 *const db, std::string const &tablename, Cols const &...cols)
 
void cet::sqlite::create_table_as (std::string const &tablename, SelectStmt const &stmt)
 
template<typename T , typename... Constraints>
std::string cet::sqlite::detail::column_info (column< T, Constraints... > const &col)
 
template<typename H , typename... T>
std::string cet::sqlite::detail::columns (H const &h, T const &...t)
 
std::string cet::sqlite::detail::create_table (std::string const &tablename)
 
template<typename... Cols>
std::string cet::sqlite::detail::create_table_ddl (std::string const &tablename, Cols const &...cols)
 
std::string cet::sqlite::detail::create_table_as_ddl (std::string const &tablename, SelectStmt const &stmt)