21 #include <platform/types.hh>
35 namespace schema_generator {
39 using std::stringstream;
64 columns_(src.columns_)
74 string const & table_name,
79 switch(db_session->get_db_mode()) {
89 s <<
"INDEX IF NOT EXISTS\n\t";
95 s <<
" " << table_name <<
" ( ";
#define utility_exit_with_message(m)
Exit with file + line + message.
std::string print(std::string const &table_name, utility::sql_database::sessionOP db_session) const
std::string name_from_database_mode(DatabaseMode::e database_mode)
Index class for the schema generator framework.
static THREAD_LOCAL basic::Tracer TR("utility.sql_database.Index")
Program exit functions and macros.
std::vector with 1-based indexing
std::string & unique(std::string &s)
Remove Repeat Characters from a Possibly Unsorted string Preserving Order.
Column class for the schema generator framework.
Class for handling user debug/warnings/errors. Use instance of this class instead of 'std::cout' for ...
pointer::shared_ptr< session > sessionOP
Index(Column column, bool unique=true)